Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9e5bde

Browse files
committed
CHANGED: got rid of historical cf-apt-update workaround
1 parent 3865c34 commit c9e5bde

File tree

6 files changed

+16
-42
lines changed

6 files changed

+16
-42
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ project adheres to [Semantic Versioning](http://semver.org/).
77
- FIXED: forced secrets to override persistent values
88
- FIXED: atomicWrite to obey ownership & mode when content is the same
99
- FIXED: cfsystem_timer exceptions in some configurations
10-
- CHANED: to prune /opt/codingfuture/bin
10+
- CHANGED: to prune /opt/codingfuture/bin
1111
- CHANGED: Ubuntu instance to remove update-motd package
12+
- CHANGED: got rid of historical cf-apt-update workaround
1213
- NEW: 'silent' atomic file write API for temporary cases
1314

1415
## 1.2.0 (2018-12-09)

manifests/apt/common.pp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,8 @@
2929
}
3030
}
3131

32-
stage { 'cf-apt-setup':
33-
require => Stage['setup'],
34-
before => Stage['main'],
35-
}
36-
37-
class { 'cfsystem::apt::update':
38-
stage => 'cf-apt-setup',
39-
}
40-
4132
class { 'cfsystem::apt::puppetlabs':
4233
release => $puppet_release,
43-
stage => 'cf-apt-setup',
34+
stage => 'setup',
4435
}
4536
}

manifests/apt/puppetlabs.pp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
) {
99
assert_private()
1010

11-
Exec['cf-apt-update']
12-
-> package { 'puppetlabs-release': ensure => absent }
11+
package { 'puppetlabs-release': ensure => absent }
1312
-> package { 'puppetlabs-release-pc1': ensure => absent }
1413
-> package { 'puppet5-release': ensure => latest }
1514
# ->
@@ -18,11 +17,9 @@
1817
#}
1918

2019
apt::source { 'puppet5':
21-
location => 'http://apt.puppetlabs.com',
22-
release => $release,
23-
repos => 'puppet5',
24-
pin => $cfsystem::apt_pin + 1,
25-
notify_update => false,
26-
notify => Exec['cf-apt-update'],
20+
location => 'http://apt.puppetlabs.com',
21+
release => $release,
22+
repos => 'puppet5',
23+
pin => $cfsystem::apt_pin + 1,
2724
}
2825
}

manifests/apt/update.pp

Lines changed: 0 additions & 15 deletions
This file was deleted.

manifests/debian/aptconfig.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
# Please see README
77
class cfsystem::debian::aptconfig {
8+
# Required by stretch/xenial
9+
user { '_apt':
10+
ensure => present,
11+
home => '/nonexistent',
12+
shell => '/bin/false',
13+
gid => 'nogroup',
14+
}
15+
816
# Use for temporary mapping with new releases
917
#---
1018
if versioncmp($::facts['operatingsystemrelease'], '10') >= 0 {

manifests/debian/cache.pp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
class cfsystem::debian::cache(
88
$acng_patterns = {},
99
) {
10-
# Required by stretch/xenial
11-
user { '_apt':
12-
ensure => present,
13-
home => '/nonexistent',
14-
shell => '/bin/false',
15-
gid => 'nogroup',
16-
}
17-
1810
if $::cfsystem::add_repo_cacher {
1911
$acng_patterns_def = {
2012
'P' => [],

0 commit comments

Comments
 (0)