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 = 157680000 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_key.pem cacrl = /var/lib/puppet/ssl/ca/ca_crl.pem module_skeleton_dir = /var/lib/puppet/puppet-module/skeleton module_working_dir = /var/lib/puppet/puppet-module #templatedir = /var/lib/puppet/templates railslog = /var/log/puppet/rails.log dblocation = /var/lib/puppet/state/clientconfigs.sqlite3 deviceconfig = /etc/puppet/device.conf devicedir = /var/lib/puppet/devices tagmap = /etc/puppet/tagmail.conf rrdinterval = 1800 rrddir = /var/lib/puppet/rrd archive_file_server = puppet and puppet agent puppet.conf [agent] certificate_expire_warning = 5184000 hostprivkey = /var/lib/puppet/ssl/private_keys/centos66-pa.localhost.pem httplog = /var/log/puppet/http.log publickeydir = /var/lib/puppet/ssl/public_keys plugindest = /var/lib/puppet/lib catalog_terminus = rest 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 = facter 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-pa.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-pa.localhost.pem requestdir = /var/lib/puppet/ssl/certificate_requests pluginsource = puppet://puppet/plugins pluginsync = false catalog_cache_terminus = json node_terminus = rest 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-pa.localhost.pem inventory_terminus = facter name = agent 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/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-pa.localhost configtimeout = 120 ca_port = 8140 localconfig = /var/lib/puppet/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 #manifest = /etc/puppet/manifests/site.pp #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/agent.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-pa.localhost capass = /var/lib/puppet/ssl/ca/private/ca.pass cacert = /var/lib/puppet/ssl/ca/ca_crt.pem ca_ttl = 157680000 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_key.pem cacrl = /var/lib/puppet/ssl/ca/ca_crl.pem module_skeleton_dir = /var/lib/puppet/puppet-module/skeleton module_working_dir = /var/lib/puppet/puppet-module #templatedir = /var/lib/puppet/templates railslog = /var/log/puppet/rails.log dblocation = /var/lib/puppet/state/clientconfigs.sqlite3 deviceconfig = /etc/puppet/device.conf devicedir = /var/lib/puppet/devices tagmap = /etc/puppet/tagmail.conf rrdinterval = 1800 rrddir = /var/lib/puppet/rrd archive_file_server = puppet environment = development here i have directories setting up.. [root@centos66-pm environments]# ls -alR .: total 16 drwxr-xr-x 4 root root 4096 Mar 17 08:03 . drwxr-xr-x 6 root root 4096 Mar 17 19:09 .. drwxr-xr-x 4 root root 4096 Mar 17 18:45 development drwxr-xr-x 4 root root 4096 Mar 17 08:06 production ./development: total 20 drwxr-xr-x 4 root root 4096 Mar 17 18:45 . drwxr-xr-x 4 root root 4096 Mar 17 08:03 .. -rw-r--r-- 1 root root 171 Mar 17 18:45 environment.conf drwxr-xr-x 2 root root 4096 Mar 17 18:19 manifests drwxr-xr-x 2 root root 4096 Mar 17 07:15 modules ./development/manifests: total 12 drwxr-xr-x 2 root root 4096 Mar 17 18:19 . drwxr-xr-x 4 root root 4096 Mar 17 18:45 .. -rw-r--r-- 1 root root 100 Mar 17 08:34 site.pp ./development/modules: total 8 drwxr-xr-x 2 root root 4096 Mar 17 07:15 . drwxr-xr-x 4 root root 4096 Mar 17 18:45 .. and this is my environment.conf file [root@centos66-pm environments]# cat development/environment.conf [development] modulepath = /etc/puppet/environments/development/modules:$basemodulepath manifest = /etc/puppet/environments/development/manifests/site.pp Here is the error that I am having when I launched my puppet master. [root@centos66-pm environments]# puppet master --no-daemonize --verbose Notice: Starting Puppet master version 3.7.4 Warning: Sections other than main, master, agent, user are deprecated in puppet.conf. Please use the directory environments feature to specify environments. (See http://docs.puppetlabs.com/puppet/latest/reference/environments.html) (at /usr/lib/ruby/site_ruby/1.8/puppet/settings/config_file.rb:82:in `unique_sections_in') Warning: Invalid sections in environment.conf at '/etc/puppet/environments/development/environment.conf'. Environment conf may not have sections. The following sections are being ignored: 'development' Warning: Invalid sections in environment.conf at '/etc/puppet/environments/development/environment.conf'. Environment conf may not have sections. The following sections are being ignored: 'development' [root@centos66-pa ~]# puppet agent -t --verbose --server=centos66-pm.localhost --environment=development Info: Loading facts Info: Caching catalog for centos66-pa.localhost Info: Applying configuration version '1426645709' Notice: Finished catalog run in 0.02 seconds basically, I have a simple site.pp that put at the development/manifests/site.pp that isn't run. I am wondering my setup and config. Please point out. thanks! -- 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/bceaef8f-3412-4d2a-bc2c-ae10c3547fad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.