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

Implement 'augeas' in 'configure_httpd.pp' #330

Closed
jeff1evesque opened this issue Feb 10, 2016 · 1 comment
Closed

Implement 'augeas' in 'configure_httpd.pp' #330

jeff1evesque opened this issue Feb 10, 2016 · 1 comment

Comments

@jeff1evesque
Copy link
Owner

We will replace as many sed, and awk implementation within configure_httpd.pp, with augeas.

IRC #puppet (02/10/16 ~ 4:15pm EST):

jeffreylevesque: is augeas the bst way to configure files
jeffreylevesque: i'm looking at http://xmodulo.com/manage-configurations-linux-puppet-augeas.html

raphink: jeffreylevesque, if you want to edit a file instead of managing it entirely, then yes
raphink: jeffreylevesque, I've summed up the various approaches here https://gist.github.com/raphink/d441e1cc686b542fcdf5
raphink: in your case, you want a partial configuration management (second part)
raphink: there is no puppet type for login.defs, no .d/ directory is possible, it's not an inifile
raphink: but there is an Augeas lens
raphink: so there you go

jeffreylevesque: raphink: thank you!

raphink: note that if you use puppet 4 (with AIO packages), you don't need to install augeas
raphink: and augtool is provided at /opt/puppetlabs/puppet/bin/augtool

Note: additional documentation can be referred within puppet_augeas.

@jeff1evesque jeff1evesque changed the title Replace 'sed', and 'awk' with 'augeas' implementation Implement 'augeas' in 'configure_httpd.pp' Feb 10, 2016
@jeff1evesque
Copy link
Owner Author

This is no longer a valid issue, since #354 has been resolved, by implementing the puppetlabs-apache module.

@jeff1evesque jeff1evesque added this to the 1.0 milestone Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant