Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI dir symlink should depend on the dist existing #158

Merged
merged 3 commits into from
Jul 23, 2015

Conversation

jsok
Copy link
Contributor

@jsok jsok commented Jul 23, 2015

I've had some issues with the ui dir symlink when trying to set the data dir to a path on an LVM volume that doesn't (yet) exist.

Even with Lvm::Volume_group <||> -> Class['consul'] the symlink creation fails. Which has me a little baffled.

Either way, this fix is trivial and probably makes sense to delay the symlink creation anyhow!

Trace:

(/Stage[main]/Staging/File[/opt/staging]/ensure) created
(/Stage[main]/Consul::Install/Staging::File[consul.zip]/File[/opt/staging/consul]/ensure) created
(/Stage[main]/Consul::Install/Staging::File[consul.zip]/Exec[/opt/staging/consul/consul.zip]/returns) executed successfully
(/Stage[main]/Consul::Install/Group[consul]/ensure) created
Could not set 'link' on ensure: No such file or directory - /var/consul at 49:/etc/puppet/modules/consul/manifests/install.pp
Could not set 'link' on ensure: No such file or directory - /var/consul at 49:/etc/puppet/modules/consul/manifests/install.pp
Wrapped exception:
No such file or directory - /var/consul
(/Stage[main]/Consul::Install/File[/var/consul/ui]/ensure) change from absent to link failed: Could not set 'link' on ensure: No such file or directory - /var/consul at 49:/etc/puppet/modules/consul/manifests/install.pp

@aj-jester
Copy link

@jsok Can we please add a test for this?

@jsok
Copy link
Contributor Author

jsok commented Jul 23, 2015

I've added an assertion that the relationship exists and that it's a symlink

solarkennedy added a commit that referenced this pull request Jul 23, 2015
UI dir symlink should depend on the dist existing
@solarkennedy solarkennedy merged commit d26c1ee into voxpupuli:master Jul 23, 2015
@solarkennedy
Copy link
Contributor

Thanks!

@aj-jester
Copy link

@jsok Looks good! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants