summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 72bd1c55341d9ce247602ac03abc8860de0976bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class raspberry {
  file { '/usr/local/bin/serial':
    ensure  => file,
    mode    => '0555',
    content => @(EOF)
    #!/bin/sh
    perl -n -e'/^Serial\s*: 0{8}(.*)/ && print "$1\n"' /proc/cpuinfo
    | EOF
  }

  file_line { 'Hack in to force systemd service prodiver on raspbian':
    path  => '/var/lib/gems/2.7.0/gems/puppet-7.14.0/lib/puppet/provider/service/systemd.rb',
    after => '^\s*defaultfor :operatingsystem => :debian',
    line  => '  defaultfor :operatingsystem => :raspbian',
  }
}