# Class: skadereg # =========================== # # Full description of class skadereg here. # # 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 function 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 # -------- # # @example # class { 'skadereg': # servers => [ 'pool.ntp.org', 'ntp.local.company.com' ], # } # # Authors # ------- # # Andreas Alvarsson <andal699@student.liu.se> # # Copyright # --------- # # Copyright 2016 Andreas Alvarsson # class skadereg { ::users::liu_user { 'andal699': commonname => 'Andreas Alvarsson', shell => '/bin/bash', sshkey => 'AAAAB3NzaC1yc2EAAAADAQABAAACAQDCdb9hWgucRRTpDEH1ozBsWXfC+zTnZEO8rrnuqLlwIy23vEaUK7pJ9tQ7AzdR3+fp6yhWBNOlWC9UT70TnVClS1NfXGXHep0J0yWqNnyXcKviKpVB/p9TOVOULrRX9o3oczYxQa4Bi+eYUfk/en2V6O8tIfYtx5AdWUoofdLYNSpCyrHD1xoH7k1/c+OfW0S3fR5f12n/5u8JTHrztDnpy79CfEtwgMr1pCMjOaiM+OIDYlhNJMvlBo5C6mcDls93snctUR1Zef+sJEznb739uw91f5Yqf5FUBLxXCBi3eveJacBVRVg++ZPzyZ9VHIlBz3OPZ1WEjiM/IRJDBXD4I5MoxnM0Urv2wZBr0+G+1cS916KKraMuEfJHf2Qg4O3L3kZY2zNN5DqRmTx1BflTqe2XdPCCMQJiQi37WjE4fOGfNVsAR2VENhw/TMzc8bcagrrIzeBm3dA5e3R7nTfloPufU6IlIwI9qvCmdI2w0rE3Ve6KHtTzWszjsFtVeOzxVzYkG6GQlT1vr867Ayvx8SWE3GixHiIRByw4BEhFVJWNN/DBT88qd61StuIvWEawZ4WiTGNYfh2SVDIy9Jrcp7Nfg1knK1OtYr+wnjO9OrJtePfo0oo9xwQ3GfwCxni8YJKp40BmfWT/fpY9Pmup71adhaPxPHnELGOeVG/fGw==', } include ::apache class { '::apache::mod_php': package_name => 'php55-php' } # include ::certdist # $cert = "/etc/pki/tls/certs/cert-${::fqdn}.pem" # $chain = "/etc/pki/tls/certs/chain-${::fqdn}.pem" # $key = "/etc/pki/tls/private/${::fqdn}.key" # apache::vhost { 'default:80': # servername => $::fqdn, # default_vhost => true, # port => '80', # docroot => '/var/www/html', # redirect_status => 'permanent', # redirect_dest => "https://${::fqdn}/", # } # apache::vhost { "${::fqdn}:443": # servername => $::fqdn, # port => '443', # ssl => true, # ssl_cert => $cert, # ssl_chain => $chain, # ssl_key => $key, # headers => ['Set Strict-Transport-Security "max-age=31536000"',], # docroot => '/var/www', # proxy_preserve_host => true, # allow_encoded_slashes => 'on', # } include ::yum::centos_scl file { '/tmp/example': ensure => file, content => template('skadereg/example.erb'), owner => andal699, group => andal699, mode => '0400', } }