]> WPIA git - infra.git/blob - environments/production/manifests/hop.pp
initial import
[infra.git] / environments / production / manifests / hop.pp
1 node hop{
2   include container::contained
3
4   package { 'tmux':
5     ensure => 'installed';
6   }
7   package { 'emacs-nox':
8     ensure => 'installed';
9   }
10   user { 'admin':
11     ensure => 'present',
12     shell => '/bin/bash'
13   }
14   file { '/home/admin':
15     require => User['admin'],
16     ensure => 'directory',
17     owner => 'admin'
18   }
19   file { '/home/admin/join':
20     ensure => 'present',
21     source => 'puppet:///modules/hop/join',
22     mode => 'a+x',
23     owner => 'root'
24   }
25   file { '/home/admin/commands':
26     ensure => 'present',
27     content => epp('hop/commands'),
28     mode => 'a+x',
29     owner => 'root'
30   }
31    file { '/home/admin/.ssh':
32     ensure => 'directory',
33     owner => 'admin'
34   }
35   file { '/home/admin/.ssh/authorized_keys':
36     ensure => 'present',
37     source => 'puppet:///modules/hop/authorized_keys',
38     owner => 'root'
39   }
40 }