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

Apache-though puppet

[root@puppetmaster ~]# cat /etc/puppet/modules/apache/manifests/init.pp # Class: apache # # This class installs Apache # # Parameters: # # Actions: # - Install Apache # - Manage Apache service # # Requires: # # Sample Usage: # class apache ( $apache_name = $::apache::params::apache_name, $service_name = $::apache::params::service_name, $default_mods = true, $default_vhost = true, $default_charset = undef, $default_confd_files … Continue reading Apache-though puppet

puppet modules

---------------------------------------------------------------------------------------------------------------------------------[root@puppetmaster ~]# puppet module search ftp Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS jhoblitt-pureftpd Manages the pure-ftpd package with comprehensive configuration support @jhoblitt mysql ldap ftp redhat rhel centos cyberious-pget Powershell Alternative to wget or curl @cyberious wget curl ftp sftp https http thias-vsftpd vsftpd FTP server @thias centos rhel ftp debian ubuntu example42-vsftpd … Continue reading puppet modules

puppet

What is Puppet? Automate. Move Faster. Increase Reliability. It's not easy being in IT operations today. The volume and complexity of infrastructure you manage is growing and getting smarter. On top of that, you've got demands from the business to do more and faster, without sacrificing security and reliability. How do you strike that balance? … Continue reading puppet