Puppet Manage Linux Client
Environment
Server: puppet.ttl.local Puppet Enterprise 3.3.2 + CentOS 6.5
Client: client.ttl.local Puppet Enterprise 3.3.2 + CentOS 6.5
If you want to archive targets besides following examples, url:
2. Install package "zlibe-devel"
Server:
A. Go to folder /etc/puppetlabs/puppet/modules
B. Create folder "install_package"
C. Create folder "manifests"
D. Create file create_directory.pp with following context:
class install_package{
package { "zlib-devel":
ensure => "installed"
}
}
E. Change privilege of the folder: chown -R root:pe-puppet install_package
Console:
A. Add class "install_package"
B. Edit node, add class "install_package"
Client:
A. run command to apply the change: puppet agent -t
3. Install gem package "sinatra"
Server:
A. Go to folder /etc/puppetlabs/puppet/modules
B. Create folder "install_gem"
C. Create folder "manifests"
D. Create file install_gem.pp with following context:
class install_gem {
package { 'sinatra':
ensure => 'installed',
provider => 'gem',
}
}
E. Change privilege of the folder: chown -R root:pe-puppet install_gem
Console:
A. Add class "install_gem"
B. Edit node, add class "install_gem"
Client:
A. export PATH=/opt/puppet/bin:$PATH
B. run command to apply the change: puppet agent -t
Comments
Post a Comment