Issue #14836 has been updated by Patrick Carlisle. Status changed from Unreviewed to Accepted
---------------------------------------- Bug #14836: puppet config should have a set action https://projects.puppetlabs.com/issues/14836#change-64311 Author: Jeff McCune Status: Accepted Priority: Normal Assignee: Patrick Carlisle Category: Faces Target version: 3.x Affected Puppet version: Keywords: nexus config set write save settings defaults puppetconf puppet.conf conf etc Branch: # Overview # Currently, the only way to write settings into `puppet.conf` is to manually edit the file or script up something with `sed`, `awk`, `perl`, `ruby`, etc... This is a problem because we need to separate out the tasks of installing Puppet from configuring puppet. Once Puppet is installed on the system, it should be easy to set the `server` and `certname` settings. # Expected Behavior (Reviewed with Daniel Sauble) <pre> $ puppet config set --section=agent server=puppetmaster.puppetlabs.lan $ puppet config set --section=agent certname=$(hostname).uuid.(ruby -rubygems -e 'require "guid"; puts Guid.new.to_s.downcase') $ puppet config set --section=agent node_name_value=$(hostname).uuid </pre> (Unrelated, but helpful) This configuration is then useful with an auth.conf on the master such as: <pre> # This requires Puppet 2.7.1 or later since it uses a regexp allow # Remember, only the first matching path is used for authorization path ~ ^/catalog/([^/]+).uuid$ method find allow /^$1\.uuid.*/ path ~ ^/catalog/([^/]+)$ method find allow $1 </pre> # References [Puppet Users](https://groups.google.com/forum/?fromgroups#!searchin/puppet-users/auth.conf/puppet-users/oy5TIugeMd8/ojSNXDQdKp0J) -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
