Radio, Web and Free Software

Changeset dcaeea24371ea882852911c6a958d1589cf00ece

Show
Ignore:
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:
17 added
6 modified

Legend:

Unmodified
Added
Removed
  • Rakefile

    rdc729fe rdcaeea2  
    8686  end 
    8787end 
     88 
     89namespace :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 
     96end 
  • files/darkice/darkice.cfg

    rdc729fe rdcaeea2  
    1818bitrateMode     = vbr       # average bit rate 
    1919format          = vorbis    # format of the stream: ogg vorbis 
    20 quality         = 0.5       # bitrate of the stream sent to the server 
     20quality         = 0.7       # bitrate of the stream sent to the server 
    2121server          = localhost 
    2222                            # host name of the server 
    2323port            = 8000      # port of the IceCast2 server, usually 8000 
    24 password        = hackme    # source password to the IceCast2 server 
     24password        = zzingfid  # source password to the IceCast2 server 
    2525mountPoint      = main      # mount point of this stream on the IceCast2 server 
    2626# name            = StreamBox stream 
  • files/darkice/darkice.default

    rdc729fe rdcaeea2  
    1212GROUP=audio 
    1313 
    14 DAEMON=/usr/bin/darkice-safe 
     14#DAEMON=/usr/bin/darkice-safe 
  • manifests/classes/darkice.pp

    rdc729fe rdcaeea2  
    11class darkice::common { 
    22  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"] 
    45  } 
    56 
     
    2223    require => User[$darkice_user] 
    2324  } 
     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  } 
    2430} 
    2531 
  • manifests/site.pp

    rb534bda rdcaeea2  
    3232$darkice_user = "stream" 
    3333include darkice::full 
    34 include apache 
    35 include apache::dnssd 
     34include icecast2 
    3635 
    3736include munin::readonly 
    3837include munin-node::local 
     38 
     39include pige 
  • script/boot

    rdc729fe rdcaeea2  
    3030 
    3131unless 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" 
    3333else 
    34   disk_option="-cdrom dist/iso" 
     34  disk_option="-cdrom dist/iso -drive file=dist/storage,if=ide,index=1,media=disk" 
    3535end 
    3636