Actions
Bug #1108
closedenvironment import not working properly
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Was trying to import some environments I created in puppet.conf:
#/etc/puppet.conf [main] # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl [agent] # The file in which puppetd stores a list of the classes # associated with the retrieved configuratiion. Can be loaded in # the separate ``puppet`` executable using the ``--loadclasses`` # option. # The default value is '$confdir/classes.txt'. classfile = $vardir/classes.txt # Where puppetd caches the local configuration. An # extension indicating the cache format is added automatically. # The default value is '$confdir/localconfig'. localconfig = $vardir/localconfig [master] external_nodes = /etc/puppet/external_nodes.rb node_terminus = exec modulepath = /etc/puppet/modules manifest = /etc/puppet/manifests/unknown_environment.pp [production] manifest = /etc/puppet/manifests/site.pp modulepath = /etc/puppet/environments/production/modules [dev] manifest = /etc/puppet/manifests/site.pp modulepath = /etc/puppet/environments/dev/modules [qa] manifest = /etc/puppet/manifests/site.pp modulepath = /etc/puppet/environments/qa/modules
[root@qa-mgmt foreman]# rake puppet:import:puppet_classes RAILS_ENV=production (in /usr/share/foreman) Evaluating possible changes to your installation Scheduled changes to your environment Create/update environments master : blackboard::common, core::mail, core::services, cpfusion::appserver, cpfusion::common, cpfusion::dbserver, cpfusion::fileserver, cpfusion::logging::local, cpfusion::logging::remote, cpfusion::maintenance, func::client, glassfish, glassfish::logserver, httpd::base, iptables::common, nfs::server, ntp::client, openssh::server, pgbackup::oldclient, pgbackup::snapshot, postgres::cpfusion, postgres::logserver, postgres::server, rsnapshot::client, rsnapshot::server, rsyslog::base, rsyslog::client, rsyslog::server, snmp::client, sudo, users::common, users::cpfadmins, users::cpfdevs, users::glassfish, webmin, yum, zabbix::agent, and zabbix::proxy qa : dev : Delete environments production : Remove environment Proceed with these modifications? <yes|no> no
As you can see it's trying to overwrite "production" and replace it with "master." Seems odd. Import the environment in the UI doesn't report any error.
Actions