Puppet Class: abiquo
- Defined in:
- manifests/init.pp
Overview
Class: abiquo
This is the base class to provide Abiquo components. Components available are API, client and remote service
Parameters
Document parameters here.
- sample_parameter
-
Explanation of what this parameter affects and what it defaults to. e.g. “Specify one or more upstream ntp servers as an array.”
Variables
Here you should define a list of variables that this module would require.
- sample_variable
-
Explanation of how this variable affects the funtion of this class and if it has a default. e.g. “The parameter enc_ntp_servers must be set by the External Node Classifier as a comma separated list of hostnames.” (Note, global variables should be avoided in favor of class parameters as of Puppet 2.6.)
Examples
class { abiquo:
servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
}
Authors
Marc Cirauqui <marc.cirauqui@abiquo.com>
Copyright
Copyright 2014 Abiquo, unless otherwise noted.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'manifests/init.pp', line 39
class abiquo (
$abiquo_version = '3.4',
$upgrade_packages = false,
$gpgcheck = true,
$gpgkeys = "http://mirror.abiquo.com/RPM-GPG-KEY-Abiquo
http://mirror.abiquo.com/RPM-GPG-KEY-MariaDB
http://mirror.abiquo.com/RPM-GPG-KEY-RabbitMQ
http://mirror.abiquo.com/RPM-GPG-RSA-KEY-Abiquo",
$baserepo = '',
$rollingrepo = ''
){
include abiquo::ntp
$baserepourl = $baserepo ? {
'' => "http://mirror.abiquo.com/abiquo/${abiquo_version}/os/x86_64/",
default => $baserepo
}
$rollingrepourl = $rollingrepo ? {
'' => "http://mirror.abiquo.com/abiquo/${abiquo_version}/updates/x86_64/",
default => $rollingrepo
}
$gpgcheckval = $gpgcheck ? {
true => 1,
false => 0,
}
yumrepo { 'Abiquo-Base':
name => 'abiquo-base',
descr => "abiquo-base-${abiquo_version}",
baseurl => $baserepourl,
gpgcheck => $gpgcheckval,
gpgkey => $gpgkeys,
http_caching => 'none',
notify => Exec['yum-clean-metadata']
}
yumrepo { 'Abiquo-Rolling':
name => 'abiquo-rolling',
descr => "abiquo-rolling-${abiquo_version}",
baseurl => $rollingrepourl,
gpgcheck => $gpgcheckval,
gpgkey => $gpgkeys,
http_caching => 'none',
require => Yumrepo['Abiquo-Base'],
notify => Exec['yum-clean-metadata']
}
exec { 'yum-clean-metadata':
path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin',
command => 'yum clean all',
refreshonly => true
}
class { 'selinux':
mode => 'disabled'
}
host { 'Add hostname to /etc/hosts':
ensure => present,
name => $::hostname,
ip => $::ipaddress,
}
}
|