diff options
Diffstat (limited to 'puppet/modules/apt/manifests/dist_upgrade/initiator.pp')
m--------- | puppet/modules/apt | 0 | ||||
-rw-r--r-- | puppet/modules/apt/manifests/dist_upgrade/initiator.pp | 23 |
2 files changed, 23 insertions, 0 deletions
diff --git a/puppet/modules/apt b/puppet/modules/apt deleted file mode 160000 -Subproject 33c61e8df59db1abbed379a9e9790946060a8f1 diff --git a/puppet/modules/apt/manifests/dist_upgrade/initiator.pp b/puppet/modules/apt/manifests/dist_upgrade/initiator.pp new file mode 100644 index 00000000..d2389883 --- /dev/null +++ b/puppet/modules/apt/manifests/dist_upgrade/initiator.pp @@ -0,0 +1,23 @@ +class apt::dist_upgrade::initiator inherits apt::dist_upgrade { + + $initiator = 'upgrade_initiator' + $initiator_abs = "${apt::apt_base_dir}/${initiator}" + + file { 'apt_upgrade_initiator': + mode => '0644', + owner => root, + group => 0, + path => $initiator_abs, + checksum => md5, + source => [ + "puppet:///modules/site_apt/${::fqdn}/${initiator}", + "puppet:///modules/site_apt/${initiator}", + "puppet:///modules/apt/${initiator}", + ], + } + + Exec['apt_dist-upgrade'] { + subscribe +> File['apt_upgrade_initiator'], + } + +} |