Skip to content

Instantly share code, notes, and snippets.

@mrcrilly
Created January 15, 2014 17:38
Show Gist options
  • Save mrcrilly/8440712 to your computer and use it in GitHub Desktop.
Save mrcrilly/8440712 to your computer and use it in GitHub Desktop.
Puppet apt-mark issues
# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/vmwaretools_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/esx_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Caching catalog for domain.tld
Info: Applying configuration version '1389804567'
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet-common' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
ruby-selinux libselinux-ruby1.8 librrd-ruby1.9.1 librrd-ruby1.8
The following packages will be REMOVED:
puppet
The following held packages will be changed:
puppet puppet-common
The following packages will be upgraded:
puppet-common
1 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
Need to get 1160 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
E: There are problems and -y was used without --force-yes
Error: /Stage[main]/Puppet::Install/Package[puppet-common]/ensure: change from held to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet-common' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
ruby-selinux libselinux-ruby1.8 librrd-ruby1.9.1 librrd-ruby1.8
The following packages will be REMOVED:
puppet
The following held packages will be changed:
puppet puppet-common
The following packages will be upgraded:
puppet-common
1 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
Need to get 1160 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
E: There are problems and -y was used without --force-yes
Notice: /Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]/content:
--- /etc/mcollective/facts.yaml 2014-01-15 12:19:11.182881227 +0000
+++ /tmp/puppet-file20140115-16390-1hdhvta-0 2014-01-15 17:33:51.194393137 +0000
@@ -64,7 +64,7 @@
operatingsystem: Ubuntu
operatingsystemrelease: "12.04"
osfamily: Debian
- path: "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
+ path: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
physicalprocessorcount: "1"
processor0: "Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz"
processorcount: "1"
Info: FileBucket adding {md5}eb4a9b3b29ec76e5efdeea80fc82141d
Info: /Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]: Filebucketed /etc/mcollective/facts.yaml to puppet with sum eb4a9b3b29ec76e5efdeea80fc82141d
Notice: /Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]/content: content changed '{md5}eb4a9b3b29ec76e5efdeea80fc82141d' to '{md5}4d807694bea122f8c7890d3b79434bc2'
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
puppet : Depends: puppet-common (= 3.4.2-1puppetlabs1) but 3.3.2-1puppetlabs1 is to be installed
E: Unable to correct problems, you have held broken packages.
Error: /Stage[main]/Puppet::Install/Package[puppet]/ensure: change from held to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
puppet : Depends: puppet-common (= 3.4.2-1puppetlabs1) but 3.3.2-1puppetlabs1 is to be installed
E: Unable to correct problems, you have held broken packages.
Notice: /Stage[main]/Puppet::Config/Concat_fragment[puppet.conf+10-main]: Dependency Package[puppet-common] has failures: true
Notice: /Stage[main]/Puppet::Config/Concat_fragment[puppet.conf+10-main]: Dependency Package[puppet] has failures: true
Warning: /Stage[main]/Puppet::Config/Concat_fragment[puppet.conf+10-main]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/Concat_build[puppet.conf]: Dependency Package[puppet] has failures: true
Notice: /Stage[main]/Puppet::Config/Concat_build[puppet.conf]: Dependency Package[puppet-common] has failures: true
Warning: /Stage[main]/Puppet::Config/Concat_build[puppet.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet]: Dependency Package[puppet-common] has failures: true
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet]: Dependency Package[puppet] has failures: true
Warning: /Stage[main]/Puppet::Config/File[/etc/puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/puppet.conf]: Dependency Package[puppet] has failures: true
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/puppet.conf]: Dependency Package[puppet-common] has failures: true
Warning: /Stage[main]/Puppet::Config/File[/etc/puppet/puppet.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]: Dependency Package[puppet] has failures: true
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]: Dependency Package[puppet-common] has failures: true
Warning: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Daemon/Cron[puppet]: Dependency Package[puppet] has failures: true
Notice: /Stage[main]/Puppet::Daemon/Cron[puppet]: Dependency Package[puppet-common] has failures: true
Warning: /Stage[main]/Puppet::Daemon/Cron[puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Service/Service[puppet]: Dependency Package[puppet-common] has failures: true
Notice: /Stage[main]/Puppet::Service/Service[puppet]: Dependency Package[puppet] has failures: true
Warning: /Stage[main]/Puppet::Service/Service[puppet]: Skipping because of failed dependencies
Notice: Finished catalog run in 5.20 seconds
# apt-mark showhold
puppet
puppet-common
puppetlabs-release
# apt-mark unhold puppet puppet-common puppetlabs-release
Canceled hold on puppet.
Canceled hold on puppet-common.
Canceled hold on puppetlabs-release.
# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/vmwaretools_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/esx_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Caching catalog for server01.domain.tld
Info: Applying configuration version '1389804567'
Notice: /Stage[main]/Puppet::Config/Concat_fragment[puppet.conf+10-main]/content: content changed '' to '### File managed with puppet ###
## Module: 'puppet'
## Template source: 'MODULES/puppet/templates/puppet.conf.erb'
[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
# Allow services in the 'puppet' group to access key (Foreman + proxy)
privatekeydir = $ssldir/private_keys { group = service }
hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
# Puppet 3.0.x requires this in both [main] and [master] - harmless on agents
autosign = $confdir/autosign.conf { mode = 664 }
[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 '$statedir/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
# Disable the default schedules as they cause continual skipped
# resources to be displayed in Foreman - only for Puppet >= 3.4
default_schedules = false
report = true
pluginsync = true
masterport = 8140
environment = production
certname = server01.domain.tld
server = puppet.domain.tld
listen = false
splay = false
runinterval = 1800
noop = false
show_diff = false
configtimeout = 120
'
Notice: /Stage[main]/Puppet::Config/Concat_build[puppet.conf]/target: * used for ordering
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/puppet.conf]/content:
--- /etc/puppet/puppet.conf 2014-01-15 12:12:58.140339722 +0000
+++ /tmp/puppet-file20140115-16685-1wi0f7n-0 2014-01-15 17:35:52.296252356 +0000
@@ -1,17 +1,54 @@
+### File managed with puppet ###
+## Module: 'puppet'
+## Template source: 'MODULES/puppet/templates/puppet.conf.erb'
+
[main]
-logdir=/var/log/puppet
-vardir=/var/lib/puppet
-ssldir=/var/lib/puppet/ssl
-rundir=/var/run/puppet
-factpath=$vardir/lib/facter
-templatedir=$confdir/templates
-
-[master]
-# These are needed when the puppetmaster is run by passenger
-# and can safely be removed if webrick is used.
-ssl_client_header = SSL_CLIENT_S_DN
-ssl_client_verify_header = SSL_CLIENT_VERIFY
+ # 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
+
+ # Allow services in the 'puppet' group to access key (Foreman + proxy)
+ privatekeydir = $ssldir/private_keys { group = service }
+ hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
+
+ # Puppet 3.0.x requires this in both [main] and [master] - harmless on agents
+ autosign = $confdir/autosign.conf { mode = 664 }
+
[agent]
-server=puppet.domain.tld
-report=true
+ # 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 '$statedir/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
+
+ # Disable the default schedules as they cause continual skipped
+ # resources to be displayed in Foreman - only for Puppet >= 3.4
+ default_schedules = false
+
+ report = true
+ pluginsync = true
+ masterport = 8140
+ environment = production
+ certname = server01.domain.tld
+ server = puppet.domain.tld
+ listen = false
+ splay = false
+ runinterval = 1800
+ noop = false
+ show_diff = false
+ configtimeout = 120
Info: FileBucket adding {md5}763d81df32e2f56a338eb72df8ad9bf6
Info: /Stage[main]/Puppet::Config/File[/etc/puppet/puppet.conf]: Filebucketed /etc/puppet/puppet.conf to puppet with sum 763d81df32e2f56a338eb72df8ad9bf6
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/puppet.conf]/content: content changed '{md5}763d81df32e2f56a338eb72df8ad9bf6' to '{md5}c2bf4c7daf297caa828bdd53cac16eca'
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]/ensure: defined content as '{md5}7663358b57f6993dd080ba861440a75a'
Info: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]: Scheduling refresh of Class[Puppet::Daemon]
Notice: Finished catalog run in 1.83 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment