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

support ensure => sourced #4

Open
raphink opened this issue Nov 14, 2014 · 2 comments
Open

support ensure => sourced #4

raphink opened this issue Nov 14, 2014 · 2 comments
Labels
enhancement New feature or request

Comments

@raphink
Copy link
Member

raphink commented Nov 14, 2014

It would be useful to have ensure => sourced for adding parsed files in configuration files:

shellvar { "Source my other conffile":
  ensure   => sourced,
  variable => '/path/to/variables.env',
}
@raphink raphink added the enhancement New feature or request label Nov 14, 2014
@mcanevet
Copy link
Member

+1

@raphink
Copy link
Member Author

raphink commented Nov 14, 2014

Come to think of it, it won't be easy to implement that in shellvar. We'll probably need a shellvar_source type instead:

shellvar_source { '/path/to/variables.env':
  ensure => present,
}

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

No branches or pull requests

2 participants