[Puppet Users] Re: Question about directory environment setting.
On Thursday, March 19, 2015 at 11:50:08 AM UTC+11, Hiu wrote: > > hi Alex, >>> >> > thanks for getting it works. But, what is the reasons having > environment.conf? Under which type of circumstance that we need this > configuration file? Thanks Again! > As you can see from the documentation, environments "may" contain an environment.conf, which allows you to override any or all of these four config file settings: http://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html#allowed-settings If you don't already have a requirement to use this feature, you can presumably just not use the environment.conf file, and configure your directory environment by following this: http://docs.puppetlabs.com/puppet/latest/reference/environments_configuring.html I have only ever used the legacy config file environments, and I don't know what motivated the change to directory environments. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/27439c5d-a727-4efc-95fa-ed77aa5bad61%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Question about directory environment setting.
> > hi Alex, >> > thanks for getting it works. But, what is the reasons having environment.conf? Under which type of circumstance that we need this configuration file? Thanks Again! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fc2d5099-016b-4409-be0d-74370355d6e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Question about directory environment setting.
I don't have a PE3.7 handy to try it but it looks like you simply don't need a section in your environment.conf file, as the error message says. I think you need to look at this page: http://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html On Wednesday, March 18, 2015 at 1:31:10 PM UTC+11, Hiu wrote: > > hi all, > > I am pretty new to puppet, and installed puppet 3.7.4 and centos66. I have > read some documentations about the directory environment setting. but i > can't figure out how to make it work. My aim is create another environment > e.g. development. May be it should a simple mistake but, please by all > means point me out of a way. thanks! > > here is my master puppet.conf > > [main] > environmentpath = /etc/puppet/environments > certificate_expire_warning = 5184000 > hostprivkey = > /var/lib/puppet/ssl/private_keys/centos66-pm.localhost.pem > httplog = /var/log/puppet/http.log > publickeydir = /var/lib/puppet/ssl/public_keys > plugindest = /var/lib/puppet/lib > catalog_terminus = compiler > route_file = /etc/puppet/routes.yaml > localcacert = /var/lib/puppet/ssl/certs/ca.pem > privatekeydir = /var/lib/puppet/ssl/private_keys > pluginfactdest = /var/lib/puppet/facts.d > facts_terminus = yaml > node_cache_terminus = write_only_yaml > immutable_node_data = false > confdir = /etc/puppet > passfile = /var/lib/puppet/ssl/private/password > csr_attributes = /etc/puppet/csr_attributes.yaml > hiera_config = /etc/puppet/hiera.yaml > hostcert = /var/lib/puppet/ssl/certs/centos66-pm.localhost.pem > factpath = /var/lib/puppet/lib/facter:/var/lib/puppet/facts > default_file_terminus = rest > ssldir = /var/lib/puppet/ssl > libdir = /var/lib/puppet/lib > rundir = /var/run/puppet > hostpubkey = /var/lib/puppet/ssl/public_keys/centos66-pm.localhost.pem > requestdir = /var/lib/puppet/ssl/certificate_requests > pluginsource = puppet://puppet/plugins > node_terminus = plain > statedir = /var/lib/puppet/state > logdir = /var/log/puppet > environment_timeout = 180 > privatedir = /var/lib/puppet/ssl/private > pluginfactsource = puppet://puppet/pluginfacts > data_binding_terminus = hiera > vardir = /var/lib/puppet > hostcrl = /var/lib/puppet/ssl/crl.pem > http_keepalive_timeout = 4 > hostcsr = /var/lib/puppet/ssl/csr_centos66-pm.localhost.pem > inventory_terminus = yaml > name = master > certdir = /var/lib/puppet/ssl/certs > filetimeout = 15 > splaylimit = 1800 > agent_catalog_run_lockfile = > /var/lib/puppet/state/agent_catalog_run.lock > classfile = /var/lib/puppet/state/classes.txt > lastrunreport = /var/lib/puppet/state/last_run_report.yaml > clientbucketdir = /var/lib/puppet/clientbucket > ca_server = puppet > graphdir = /var/lib/puppet/state/graphs > report_server = puppet > waitforcert = 120 > statefile = /var/lib/puppet/state/state.yaml > inventory_server = puppet > puppetdlog = /var/log/puppet/puppetd.log > client_datadir = /var/lib/puppet/client_data > lastrunfile = /var/lib/puppet/state/last_run_summary.yaml > agent_disabled_lockfile = /var/lib/puppet/state/agent_disabled.lock > runinterval = 1800 > resourcefile = /var/lib/puppet/state/resources.txt > node_name_value = centos66-pm.localhost > configtimeout = 120 > ca_port = 8140 > localconfig = /var/lib/puppet/state/localconfig > report_port = 8140 > clientyamldir = /var/lib/puppet/client_yaml > inventory_port = 8140 > reportdir = /var/lib/puppet/reports > storeconfigs_backend = active_record > bucketdir = /var/lib/puppet/bucket > fileserverconfig = /etc/puppet/fileserver.conf > yamldir = /var/lib/puppet/yaml > #masterlog = /var/log/puppet/puppetmaster.log > default_manifest = /etc/puppet/manifests/site.pp > disable_per_environment_manifest = false > #modulepath = /etc/puppet/modules:/usr/share/puppet/modules > rest_authconfig = /etc/puppet/auth.conf > basemodulepath = /etc/puppet/modules:/usr/share/puppet/modules > server_datadir = /var/lib/puppet/server_data > masterhttplog = /var/log/puppet/masterhttp.log > #manifestdir = /etc/puppet/manifests > pidfile = /var/run/puppet/master.pid > config = /etc/puppet/puppet.conf > autosign = /etc/puppet/autosign.conf > cert_inventory = /var/lib/puppet/ssl/ca/inventory.txt > csrdir = /var/lib/puppet/ssl/ca/requests > ca_name = Puppet CA: centos66-pm.localhost > capass = /var/lib/puppet/ssl/ca/private/ca.pass > cacert = /var/lib/puppet/ssl/ca/ca_crt.pem > ca_ttl = 15768 > capub = /var/lib/puppet/ssl/ca/ca_pub.pem > caprivatedir = /var/lib/puppet/ssl/ca/private > serial = /var/lib/puppet/ssl/ca/serial > signeddir = /var/lib/puppet/ssl/ca/signed > cadir = /var/lib/puppet/ssl/ca > cakey = /var/lib/puppet/ssl/ca/ca_k