Commit 1f378855 authored by totalreset's avatar totalreset
Browse files

removed wrong file

parent eb17a811
# sms audio
class sms::streamingserver (
String $docker_repo = 'https://git.puscii.nl/sms/streaming-docker.git',
String $docker_repo_revision = 'master'
)
{
tag 'sms'
# this means that first the buster class will be applied (so we have our apt repo's etc.)
require put::buster
## this are the defaults for the exec resource (cause it starts with a capital)
Exec {
user => 'root',
cwd => '/root/',
timeout => 9999,
path => '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
environment => ['HOME=/root' ]
}
file{ "/root/sources":
ensure => directory,
owner => 'root'
}
$file_contents = @("EOF")
contents or our testfile
EOF
file{ "/root/testfile":
ensure => present,
content => $file_contents,
}
# enable the firewall
include put::firewall
# some exceptions to the firewall
firewall { '901 rtmp':
dport => '1935',
proto => 'tcp',
action => 'accept',
}
{ '22 ssh':
dport => '22',
proto => 'tcp',
action => 'accept',
}
# install some packages
$pkgs = [
'docker',
]
ensure_packages($pkgs, {ensure => 'installed'})
# clone the streaming-docker repo
vcsrepo { '/root/sources/streaming-docker':
ensure => present,
provider => git,
owner => root,
group => root,
remote => 'origin',
user => root,
revision => $docker_repo_revision,
source => {
'origin' => "$docker_repo",
}
}
vcsrepo { '/root/sources/streaming-media-stuff':
ensure => present,
provider => git,
owner => root,
group => root,
remote => 'origin',
revision => 'master',
user => root,
source => {
'origin' => 'https://git.puscii.nl/sms/streaming-media-stuff.git',
}
}
file { "/mnt/radio":
ensure => directory,
owner => 'root',
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment