Changeset dcaeea24371ea882852911c6a958d1589cf00ece
- Timestamp:
- 07/26/10 20:39:36 (6 weeks ago)
- Author:
- Florent Peyraud <florent@…>
- Parents:
- d873e6df1f9d915ba36e1596ca81d53abdff52b5
- Children:
- 3c00018ff59088b3260dc3bc0f949ddd77311872
- git-committer:
- Florent Peyraud <florent@tryphon.eu> / 2010-07-26T20:39:36Z+0200
- Message:
-
plenty of initial setup, but still incomplete and unstable
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rdc729fe
|
rdcaeea2
|
|
| 86 | 86 | end |
| 87 | 87 | end |
| | 88 | |
| | 89 | namespace :stagebox do |
| | 90 | namespace :storage do |
| | 91 | desc "Create storage disk" |
| | 92 | task :create do |
| | 93 | sh "qemu-img create -f qcow2 dist/storage 10G" |
| | 94 | end |
| | 95 | end |
| | 96 | end |
-
|
rdc729fe
|
rdcaeea2
|
|
| 18 | 18 | bitrateMode = vbr # average bit rate |
| 19 | 19 | format = vorbis # format of the stream: ogg vorbis |
| 20 | | quality = 0.5 # bitrate of the stream sent to the server |
| | 20 | quality = 0.7 # bitrate of the stream sent to the server |
| 21 | 21 | server = localhost |
| 22 | 22 | # host name of the server |
| 23 | 23 | port = 8000 # port of the IceCast2 server, usually 8000 |
| 24 | | password = hackme # source password to the IceCast2 server |
| | 24 | password = zzingfid # source password to the IceCast2 server |
| 25 | 25 | mountPoint = main # mount point of this stream on the IceCast2 server |
| 26 | 26 | # name = StreamBox stream |
-
|
rdc729fe
|
rdcaeea2
|
|
| 12 | 12 | GROUP=audio |
| 13 | 13 | |
| 14 | | DAEMON=/usr/bin/darkice-safe |
| | 14 | #DAEMON=/usr/bin/darkice-safe |
-
|
rdc729fe
|
rdcaeea2
|
|
| 1 | 1 | class darkice::common { |
| 2 | 2 | file { "/etc/darkice/darkice.cfg": |
| 3 | | ensure => "/var/etc/darkice/darkice.cfg" |
| | 3 | source => "$source_base/files/darkice/darkice.cfg", |
| | 4 | require => File["/etc/darkice"] |
| 4 | 5 | } |
| 5 | 6 | |
| … |
… |
|
| 22 | 23 | require => User[$darkice_user] |
| 23 | 24 | } |
| | 25 | |
| | 26 | exec { "update-rc.d-darkice-boot": |
| | 27 | command => "update-rc.d darkice defaults 21 19", |
| | 28 | require => File["/etc/init.d/darkice"] |
| | 29 | } |
| 24 | 30 | } |
| 25 | 31 | |
-
|
rb534bda
|
rdcaeea2
|
|
| 32 | 32 | $darkice_user = "stream" |
| 33 | 33 | include darkice::full |
| 34 | | include apache |
| 35 | | include apache::dnssd |
| | 34 | include icecast2 |
| 36 | 35 | |
| 37 | 36 | include munin::readonly |
| 38 | 37 | include munin-node::local |
| | 38 | |
| | 39 | include pige |
-
|
rdc729fe
|
rdcaeea2
|
|
| 30 | 30 | |
| 31 | 31 | unless ARGV.first == "iso" |
| 32 | | disk_option="-drive file=dist/disk,if=ide,index=0,media=disk" |
| | 32 | disk_option="-drive file=dist/disk,if=ide,index=0,media=disk -drive file=dist/storage,if=ide,index=1,media=disk" |
| 33 | 33 | else |
| 34 | | disk_option="-cdrom dist/iso" |
| | 34 | disk_option="-cdrom dist/iso -drive file=dist/storage,if=ide,index=1,media=disk" |
| 35 | 35 | end |
| 36 | 36 | |