summaryrefslogtreecommitdiff
path: root/grid5000/steps/data/setup/puppet/modules/env/manifests/std/add_g5kcode_to_path.pp
blob: ef7ec33d9285f367e265f3f3711d23ee20a235fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class env::std::add_g5kcode_to_path {

  file {
    '/root/.ssh':
      ensure  => directory,
      owner   => root,
      group   => root,
      mode    => '0700';
  }

  # Sounds dirty as fuck, but Augeas does not manage /etc/profile which is a bash file, and not a real configuration file (or I'm really bad with Augeas).
  file_line { 'g5kcode_etc_profile_path':
    path => '/etc/profile',
    line => 'export PATH=$PATH:/grid5000/code/bin';
  }
}