omd through puppet

[root@puppetmaster ~]#puppet module search omd [root@puppetmaster ~]#puppet module install tanny1910-omd [root@puppetmaster ~]# puppet module search epel [root@puppetmaster ~]# puppet module install stahnma-epel [root@puppetmaster ~]# cat /etc/puppet/manifests/site.pp hiera_include("classes") [root@puppetmaster ~]# cat /etc/puppet/hieradata/common.yaml --- classes: - 'epel' - 'omd' - 'omd::check_mk::agent' - 'omd::check_mk::plugins::puppet' --------------------------------------------------- client -side -------------------------------------------- [root@puppetserver ~]# rpm -Uvh https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm Retrieving https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm Preparing... ################################# [100%] … Continue reading omd through puppet

Manage-Users

[root@server ~]# vim /etc/puppet/manifests/site.pp hiera_include('classes') node default { include users::students } --------------------------------------------------------------------- [root@server ~]# mkdir -p /etc/puppet/modules/users/manifests/ [root@server ~]# vim /etc/puppet/modules/users/manifests/students.pp class users::students { user { 'mohammed': ensure => present, groups => ['sudo', 'users'], managehome => 'true', shell => '/bin/bash', password => '$6$4T7f7FMX$hnSX1.CaAiKI1dSQnKdFX0T782N6QYOTFoU2V0A0tywyHR28jxNgcgSGCabFO5m20Fv4ulxokRLhraELyFfFu.', } group { "sudo": ensure => "present", } } --------------------------------------------------------------------- [root@server ~]# … Continue reading Manage-Users

ssh-puppet

[root@server ~]# puppet module search ssh Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS aptituz-ssh puppet module to manage ssh @aptituz hostkey openssh ssh systemsathomesdotcom-ssh puppet module to manage ssh @systemsathomesdotcom hostkey openssh ssh attachmentgenie-ssh Puppet ssh Module @attachmentgenie ssh-server ssh-client ssh thias-ssh SSH module @thias openssh ssh sshd spiette-ssh openssh server and client configuration … Continue reading ssh-puppet

Ntp-Through Puppet

[root@server ~]# puppet module search ntp Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS ghoneycutt-ntp Manage NTP @ghoneycutt ntp time services sync dhoppe-ntp This module installs, configures and manages the NTP service. @dhoppe ntp puppetlabs-ntp Installs, configures, and manages the NTP service. @puppetlabs ntp time aix rhel centos ntpd thias-ntp Network Time Protocol module @thias … Continue reading Ntp-Through Puppet

Time-Zone through puppet

[root@server ~]# puppet module search timezone Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS bashtoni-timezone Configure /etc/localtime and associated system files @bashtoni linux timezone attachmentgenie-timezone Puppet timezone Module @attachmentgenie localtime tzdata timezone example42-timezone Puppet module to manage timezones @example42 timezone time example42 ghoneycutt-timezone Manage system time zone @ghoneycutt saz-timezone UNKNOWN @saz centos debian ubuntu timezone … Continue reading Time-Zone through puppet

Apache through puppet

[root@server ~]# puppet module list /etc/puppet/modules (no modules installed) /usr/share/puppet/modules (no modules installed) -------------------------------------------------------------------------------- [root@server ~]# puppet module install puppetlabs-apache Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- do not interrupt ... /etc/puppet/modules └─┬ puppetlabs-apache (v1.10.0) ├── puppetlabs-concat (v2.1.0) └── puppetlabs-stdlib (v4.12.0) -------------------------------------------------------------------------------- [root@server ~]# puppet module list … Continue reading Apache through puppet