Tag Archive for puppet

Atualizando a GLIBC no Puppet

$ mkdir -p /etc/puppet/manifests/classes

$ cd /etc/puppet/manifests/classes

$ vim linux_packages.pp

class linux_packages {

  package {'bash':
    ensure => latest,
  }

  package {'glibc':
    ensure => latest,
  }

}

$ cd /etc/puppet/manifests

$ vi site.pp

import "classes/*.pp"

if versioncmp($::puppetversion,'3.6.1') >= 0 {
  Package {
    allow_virtual => false,
  }
}

node 'linuxservers' {
  include linux_packages
}

node /^lanersrv0*/ inherits linuxservers { }