diff --git a/modules/openstack_project/files/centos7-puppetlabs.repo b/modules/openstack_project/files/centos7-puppetlabs.repo index c56e292509..66b4034a46 100644 --- a/modules/openstack_project/files/centos7-puppetlabs.repo +++ b/modules/openstack_project/files/centos7-puppetlabs.repo @@ -4,4 +4,3 @@ baseurl=http://yum.puppetlabs.com/el/7/products/$basearch gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs enabled=1 gpgcheck=1 -exclude=puppet-4* facter-3* puppetdb-3* puppetdb-terminus-3* diff --git a/modules/openstack_project/manifests/template.pp b/modules/openstack_project/manifests/template.pp index d4b49ad676..fad3209e29 100644 --- a/modules/openstack_project/manifests/template.pp +++ b/modules/openstack_project/manifests/template.pp @@ -221,26 +221,6 @@ class openstack_project::template ( line => ' UseRoaming no', } - ########################################################### - # Manage Puppet - # possible TODO: break this into openstack_project::puppet - - case $pin_puppet { - '2.7.': { - $pin_facter = '1.' - $pin_puppetdb = '1.' - } - /^3\./: { - $pin_facter = '2.' - $pin_puppetdb = '2.' - } - default: { - fail("Puppet version not supported") - } - } - - # Which Puppet do I take? - # Take $puppet_version and pin to that version if ($::osfamily == 'Debian') { # NOTE(pabelanger): Puppetlabs only support Ubuntu Trusty and below, # anything greater will use the OS version of puppet. @@ -280,15 +260,6 @@ class openstack_project::template ( 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': ensure => present, owner => 'root', @@ -310,9 +281,6 @@ class openstack_project::template ( replace => true, } } - - $puppet_version = $pin_puppet - service { 'puppet': ensure => stopped, enable => false, diff --git a/modules/openstack_project/templates/00-puppet.pref.erb b/modules/openstack_project/templates/00-puppet.pref.erb deleted file mode 100644 index 759c84f45f..0000000000 --- a/modules/openstack_project/templates/00-puppet.pref.erb +++ /dev/null @@ -1,11 +0,0 @@ -Package: puppet puppet-common puppetmaster puppetmaster-common puppetmaster-passenger -Pin: version <%= @pin_puppet %>* -Pin-Priority: 501 - -Package: puppetdb puppetdb-terminus -Pin: version <%= @pin_puppetdb %>* -Pin-Priority: 501 - -Package: facter -Pin: version <%= @pin_facter %>* -Pin-Priority: 501