Merge "Revert "Stop managing puppet apt pins""
This commit is contained in:
commit
0879e87407
@ -16,14 +16,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
#
|
|
||||||
# Distro identification functions
|
|
||||||
# note, can't rely on lsb_release for these as we're bare-bones and
|
|
||||||
# it may not be installed yet)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Test condition to install puppet 3
|
# Test condition to install puppet 3
|
||||||
PUPPET_VERSION=${PUPPET_VERSION:-2}
|
PUPPET_VERSION=${PUPPET_VERSION:-3}
|
||||||
if [ "$PUPPET_VERSION" = '3' ]; then
|
if [ "$PUPPET_VERSION" = '3' ]; then
|
||||||
THREE=yes
|
THREE=yes
|
||||||
echo "Running in 3 mode"
|
echo "Running in 3 mode"
|
||||||
@ -144,7 +138,7 @@ function setup_puppet_ubuntu {
|
|||||||
|
|
||||||
# NB: keep in sync with openstack_project/files/00-puppet.pref
|
# NB: keep in sync with openstack_project/files/00-puppet.pref
|
||||||
if [ "$THREE" == 'yes' ]; then
|
if [ "$THREE" == 'yes' ]; then
|
||||||
PUPPET_VERSION=3.6.*
|
PUPPET_VERSION=3.*
|
||||||
PUPPETDB_TERMINUS_VERSION=2.*
|
PUPPETDB_TERMINUS_VERSION=2.*
|
||||||
FACTER_VERSION=2.*
|
FACTER_VERSION=2.*
|
||||||
else
|
else
|
||||||
|
@ -4,4 +4,4 @@ baseurl=http://yum.puppetlabs.com/el/6/products/$basearch
|
|||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
exclude=puppet-2.8* puppet-2.9* puppet-3* facter-2*
|
exclude=puppet-4* facter-3* puppetdb-terminus-3*
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
class openstack_project::base(
|
class openstack_project::base(
|
||||||
$certname = $::fqdn,
|
$certname = $::fqdn,
|
||||||
$install_users = true,
|
$install_users = true,
|
||||||
$pin_puppet = '2.7.',
|
$pin_puppet = '3.',
|
||||||
$ca_server = undef,
|
$ca_server = undef,
|
||||||
) {
|
) {
|
||||||
if ($::osfamily == 'Debian') {
|
if ($::osfamily == 'Debian') {
|
||||||
@ -136,6 +136,15 @@ class openstack_project::base(
|
|||||||
replace => true,
|
replace => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/apt/preferences.d/00-puppet.pref':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0444',
|
||||||
|
content => template('openstack_project/00-puppet.pref.erb'),
|
||||||
|
replace => true,
|
||||||
|
}
|
||||||
|
|
||||||
file { '/etc/default/puppet':
|
file { '/etc/default/puppet':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
@ -148,6 +157,14 @@ class openstack_project::base(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($::operatingsystem == 'CentOS') {
|
if ($::operatingsystem == 'CentOS') {
|
||||||
|
file { '/etc/yum.repos.d/puppetlabs.repo':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0444',
|
||||||
|
source => 'puppet:///modules/openstack_project/centos-puppetlabs.repo',
|
||||||
|
replace => true,
|
||||||
|
}
|
||||||
file { '/etc/yum.conf':
|
file { '/etc/yum.conf':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
class openstack_project::puppetmaster (
|
class openstack_project::puppetmaster (
|
||||||
$root_rsa_key,
|
$root_rsa_key,
|
||||||
$sysadmins = [],
|
$sysadmins = [],
|
||||||
$version = '2.7.',
|
$version = '3.',
|
||||||
$ca_server = undef,
|
$ca_server = undef,
|
||||||
$puppetdb = true,
|
$puppetdb = true,
|
||||||
$puppetdb_server = 'puppetdb.openstack.org',
|
$puppetdb_server = 'puppetdb.openstack.org',
|
||||||
|
@ -8,7 +8,7 @@ class openstack_project::server (
|
|||||||
$iptables_rules6 = [],
|
$iptables_rules6 = [],
|
||||||
$sysadmins = [],
|
$sysadmins = [],
|
||||||
$certname = $::fqdn,
|
$certname = $::fqdn,
|
||||||
$pin_puppet = '2.7.',
|
$pin_puppet = '3.',
|
||||||
$ca_server = undef,
|
$ca_server = undef,
|
||||||
) {
|
) {
|
||||||
class { 'openstack_project::template':
|
class { 'openstack_project::template':
|
||||||
|
@ -7,7 +7,7 @@ class openstack_project::template (
|
|||||||
$iptables_public_udp_ports = [],
|
$iptables_public_udp_ports = [],
|
||||||
$iptables_rules4 = [],
|
$iptables_rules4 = [],
|
||||||
$iptables_rules6 = [],
|
$iptables_rules6 = [],
|
||||||
$pin_puppet = '2.7.',
|
$pin_puppet = '3.',
|
||||||
$install_users = true,
|
$install_users = true,
|
||||||
$install_resolv_conf = true,
|
$install_resolv_conf = true,
|
||||||
$automatic_upgrades = true,
|
$automatic_upgrades = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user