Improve package installation ordering in shared-apt
root@leap-wheezy:~# puppet apply -v --confdir $PLATFORM/puppet --libdir $PLATFORM/puppet/lib --modulepath=$MODULEPATH $PLATFORM/puppet/manifests/site.pp $TAGS $@ info: Loading facts in /srv/leap//puppet/modules/sshd/lib/facter/sshkeys.rb info: Loading facts in /srv/leap//puppet/modules/stdlib/lib/facter/pe_version.rb info: Loading facts in /srv/leap//puppet/modules/stdlib/lib/facter/root_home.rb info: Loading facts in /srv/leap//puppet/modules/stdlib/lib/facter/puppet_vardir.rb info: Loading facts in /srv/leap//puppet/modules/nagios/lib/facter/mountpoints.rb info: Loading facts in /srv/leap//puppet/modules/strongswan/lib/facter/strongswan_cert.rb info: Loading facts in /srv/leap//puppet/modules/strongswan/lib/facter/strongswan_ips.rb info: Loading facts in /srv/leap//puppet/modules/concat/lib/facter/concat_basedir.rb info: Loading facts in /srv/leap//puppet/modules/apt/lib/facter/apt_running.rb info: Loading facts in /srv/leap//puppet/modules/site_config/lib/facter/ip_interface.rb notice: Scope(Class[main]): Services for leap-wheezy.vagrantup.com: couchdb soledad warning: Dynamic lookup of $custom_preferences at /srv/leap//puppet/modules/apt/manifests/preferences_snippet.pp:16 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag. info: Applying configuration version '1372171325' notice: /Stage[setup]/Site_apt::Dist_upgrade/Exec[initial_apt_update]/returns: executed successfully notice: /Stage[setup]/Site_apt::Dist_upgrade/Exec[initial_apt_dist_upgrade]/returns: executed successfully info: FileBucket adding {md5}bcf8b48a80aa206720d98d7c81baee72 info: /Stage[setup]/Site_config::Hosts/File[/etc/hosts]: Filebucketed /etc/hosts to puppet with sum bcf8b48a80aa206720d98d7c81baee72 notice: /Stage[setup]/Site_config::Hosts/File[/etc/hosts]/content: content changed '{md5}bcf8b48a80aa206720d98d7c81baee72' to '{md5}85e514e9ef0f98ca2b466bf48334a09b' info: /Stage[setup]/Site_config::Hosts/File[/etc/hosts]: Scheduling refresh of Exec[/bin/hostname couch1] info: FileBucket adding {md5}8bbb21c9f0bbd1371e34e50e29bb1b3b info: /Stage[setup]/Site_config::Hosts/File[/etc/hostname]: Filebucketed /etc/hostname to puppet with sum 8bbb21c9f0bbd1371e34e50e29bb1b3b notice: /Stage[setup]/Site_config::Hosts/File[/etc/hostname]/content: content changed '{md5}8bbb21c9f0bbd1371e34e50e29bb1b3b' to '{md5}fd8938466eb8e44dbd4ab08eef17209a' info: /Stage[setup]/Site_config::Hosts/File[/etc/hostname]: Scheduling refresh of Exec[/bin/hostname couch1] notice: /Stage[setup]/Site_config::Hosts/Exec[/bin/hostname couch1]: Triggered 'refresh' from 2 events notice: /Stage[main]/Couchdb::Bigcouch::Debian/File[/etc/init.d/bigcouch]/ensure: created notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.sh]/ensure: defined content as '{md5}256169ee61115a6b717b2844d2ea3128' notice: /Stage[main]/Stunnel::Base/File[/etc/stunnel]/ensure: created notice: /Stage[main]/X509::Base/File[/usr/local/share/ca-certificates]/group: group changed 'staff' to 'root' info: /Stage[main]/X509::Base/File[/usr/local/share/ca-certificates]: Scheduling refresh of Exec[update-ca-certificates] info: FileBucket adding {md5}6ab0c1eacffa8aa9a36e0678c0d6ef6f info: /Stage[main]/Site_apt/Apt::Apt_conf[90disable-pdiffs]/File[/etc/apt/apt.conf.d/90disable-pdiffs]: Filebucketed /etc/apt/apt.conf.d/90disable-pdiffs to puppet with sum 6ab0c1eacffa8aa9a36e0678c0d6ef6f notice: /Stage[main]/Site_apt/Apt::Apt_conf[90disable-pdiffs]/File[/etc/apt/apt.conf.d/90disable-pdiffs]/content: content changed '{md5}6ab0c1eacffa8aa9a36e0678c0d6ef6f' to '{md5}927b8094c4e9e96fad7513dd781e7b37' info: /Stage[main]/Site_apt/Apt::Apt_conf[90disable-pdiffs]/File[/etc/apt/apt.conf.d/90disable-pdiffs]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Common::Moduledir/File[/var/lib/puppet/modules]/ensure: created notice: /File[/var/lib/puppet/modules/README]/ensure: defined content as '{md5}54000a2c832d3c13c1b6c5e2d4624644' notice: /Stage[main]/Site_sshd/File[/etc/profile.d/xterm-title.sh]/ensure: defined content as '{md5}7147bf5e652acf1ee654cb569034ee68' notice: /Stage[main]/Site_apt::Leap_repo/Apt::Sources_list[leap.list]/File[/etc/apt/sources.list.d/leap.list]/ensure: created info: /Stage[main]/Site_apt::Leap_repo/Apt::Sources_list[leap.list]/File[/etc/apt/sources.list.d/leap.list]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Site_apt/Apt::Sources_list[secondary.list.disabled]/File[/etc/apt/sources.list.d/secondary.list.disabled]/ensure: created info: /Stage[main]/Site_apt/Apt::Sources_list[secondary.list.disabled]/File[/etc/apt/sources.list.d/secondary.list.disabled]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Site_config::Shell/File[/etc/profile.d/leap_path.sh]/ensure: defined content as '{md5}cbb03217f4c225b3e17589ed4cc65c28' notice: /Stage[main]/Couchdb::Bigcouch::Package::Cloudant/Apt::Sources_list[squeeze.list]/File[/etc/apt/sources.list.d/squeeze.list]/ensure: created info: /Stage[main]/Couchdb::Bigcouch::Package::Cloudant/Apt::Sources_list[squeeze.list]/File[/etc/apt/sources.list.d/squeeze.list]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Couchdb::Bigcouch::Package::Cloudant/Apt::Sources_list[bigcouch-cloudant.list]/File[/etc/apt/sources.list.d/bigcouch-cloudant.list]/ensure: created info: /Stage[main]/Couchdb::Bigcouch::Package::Cloudant/Apt::Sources_list[bigcouch-cloudant.list]/File[/etc/apt/sources.list.d/bigcouch-cloudant.list]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Apt/Apt::Apt_conf[02show_upgraded]/File[/etc/apt/apt.conf.d/02show_upgraded]/ensure: defined content as '{md5}f8b9fbb99496bc2d919bb757b9819540' info: /Stage[main]/Apt/Apt::Apt_conf[02show_upgraded]/File[/etc/apt/apt.conf.d/02show_upgraded]: Scheduling refresh of Exec[refresh_apt] info: FileBucket adding {md5}3d1ce0d082c4808ee9fee502e7efa890 info: /Stage[main]/Apt/File[/etc/apt/sources.list]: Filebucketed /etc/apt/sources.list to puppet with sum 3d1ce0d082c4808ee9fee502e7efa890 notice: /Stage[main]/Apt/File[/etc/apt/sources.list]/content: content changed '{md5}3d1ce0d082c4808ee9fee502e7efa890' to '{md5}8caa45c8e8b54ce440ad988fe8310093' info: /Stage[main]/Apt/File[/etc/apt/sources.list]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Apt/Apt::Apt_conf[03clean]/File[/etc/apt/apt.conf.d/03clean]/ensure: defined content as '{md5}9c94d212b6be1a8a08d1facc24424f8b' info: /Stage[main]/Apt/Apt::Apt_conf[03clean]/File[/etc/apt/apt.conf.d/03clean]: Scheduling refresh of Exec[refresh_apt] notice: /Stage[main]/Apt/File[/var/cache/local]/ensure: created notice: /Stage[main]/Apt/File[/var/cache/local/preseeding]/ensure: created notice: /Stage[main]/Site_apt/Apt::Preferences_snippet[facter]/File[/etc/apt/preferences.d/facter]/ensure: created notice: /Stage[main]/X509::Base/File[/etc/x509]/ensure: created notice: /Stage[main]/X509::Base/File[/etc/x509/certs]/ensure: created notice: /Stage[main]/Stunnel/File[/var/lib/puppet/stunnel4]/ensure: created notice: /Stage[main]/Stunnel/File[/var/lib/puppet/stunnel4/bin]/ensure: created notice: /Stage[main]/Stunnel/File[/var/lib/puppet/stunnel4/bin/refresh_stunnel.sh]/ensure: defined content as '{md5}67161ce8b9677ac83f4c075ec95966ee' notice: /Stage[main]/Stunnel/File[/var/lib/puppet/stunnel4/configs]/ensure: created info: /Stage[main]/Stunnel/File[/var/lib/puppet/stunnel4/configs]: Scheduling refresh of Exec[refresh_stunnel] info: Could not find filesystem info for file 'modules/apt/modules_dir' in environment production notice: /Stage[main]/Apt/Modules_dir[apt]/Module_dir[apt]/File[/var/lib/puppet/modules/apt]/ensure: created notice: /Stage[main]/Apt/File[/var/lib/puppet/modules/apt/keys.d]/ensure: created notice: /File[/var/lib/puppet/modules/apt/keys.d/leap_key.asc]/ensure: defined content as '{md5}642ac728468d65004024eb749f1de091' notice: /File[/var/lib/puppet/modules/apt/keys.d/cloudant-key.asc]/ensure: defined content as '{md5}fcc0cc23cd62813d8409acfe22163c26' info: /var/lib/puppet/modules/apt/keys.d: Scheduling refresh of Exec[custom_keys] notice: /Stage[main]/Apt/Exec[custom_keys]: Triggered 'refresh' from 1 events notice: /Stage[main]/Apt::Preferences/File[/etc/apt/preferences]/ensure: created notice: /Stage[main]/Git::Base/Package[git]/ensure: ensure changed 'purged' to 'present' notice: /Stage[main]/Unbound::Package/Package[unbound]/ensure: ensure changed 'purged' to 'present' notice: /Stage[main]/Augeas::Debian/Package[libaugeas-ruby1.9.1]/ensure: ensure changed 'purged' to 'present' notice: /Stage[main]/Site_config::Caching_resolver/File[/etc/unbound/conf.d]/ensure: created notice: /Stage[main]/Site_config::Default/Package[etckeeper]/ensure: ensure changed 'purged' to 'present' err: /Stage[main]/Apt::Dot_d_directories/Exec[refresh_apt]: Failed to call refresh: /usr/bin/apt-get update && sleep 1 returned 100 instead of one of [0] at /srv/leap//puppet/modules/apt/manifests/dot_d_directories.pp:20 err: /Stage[main]/Site_apt::Leap_repo/Package[leap-keyring]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install leap-keyring' returned 100: Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: leap-keyring 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 4890 B of archives. After this operation, 33.8 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! leap-keyring E: There are problems and -y was used without --force-yes at /srv/leap//puppet/modules/site_apt/manifests/leap_repo.pp:9 notice: /Stage[main]/Stunnel::Linux/Package[stunnel]/ensure: ensure changed 'purged' to 'present' notice: /Stage[main]/Site_couchdb::Stunnel/Site_stunnel::Clients[couch29002]/Stunnel::Service[couch29002]/File[/var/lib/puppet/stunnel4/configs/couch29002.conf]/ensure: created info: /Stage[main]/Site_couchdb::Stunnel/Site_stunnel::Clients[couch29002]/Stunnel::Service[couch29002]/File[/var/lib/puppet/stunnel4/configs/couch29002.conf]: Scheduling refresh of Exec[refresh_stunnel] notice: /Stage[main]/Shorewall::Base/Package[shorewall]/ensure: ensure changed 'purged' to 'present' info: FileBucket adding {md5}957b909f291d6ac2438fe07d0351e9c8 info: /Stage[main]/Shorewall::Debian/File[/etc/default/shorewall]: Filebucketed /etc/default/shorewall to puppet with sum 957b909f291d6ac2438fe07d0351e9c8 notice: /Stage[main]/Shorewall::Debian/File[/etc/default/shorewall]/content: content changed '{md5}957b909f291d6ac2438fe07d0351e9c8' to '{md5}c02a8369d7454149b74ed3f0f5c9ada0'
(from redmine: created on 2013-06-25, closed on 2013-09-05, relates #2971 (closed), relates #2993 (closed), relates #3507 (closed))