Skip to content

Instantly share code, notes, and snippets.

@mazurov
Created May 5, 2017 14:50
Show Gist options
  • Save mazurov/b44ed86594551cadc186090b778319f3 to your computer and use it in GitHub Desktop.
Save mazurov/b44ed86594551cadc186090b778319f3 to your computer and use it in GitHub Desktop.
amazurov puppet for docker
class hg_playground::amazurov {
motd::news{'lhcbpr installed':
date => '2015-11-26',
message => ' The LHCb PR machines installed with puppet.'
}
notify {'LHCb settings for LHCb PR machines' :}
include hg_playground::amazurov::software
include hg_playground::amazurov::firewall
# add group z5 to access LHCb machines
user{'lhcbpr':
ensure => present,
name => 'lhcbpr',
gid => 1470,
uid => 45054,
shell => '/bin/bash',
}
include('sudo')
sudo::directive {'admin_users':
ensure => present,
content => "amazurov ALL=(ALL) ALL",
}
include('fetchcrl')
certmgr::certificate { "my grid hostcert": }
mount { "/lhcbprdata":
device => "/dev/vdb",
fstype => "ext4",
ensure => "mounted",
options => "defaults",
atboot => "true",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment