タグ

2013年3月24日のブックマーク (2件)

  • Puppet や Chef で構築したサーバを RSpec でテストする - Gosuke Miyashita

    追記 ここに書いてあることを実現する serverspec という gem をつくりました。詳しくはこちらのエントリで。 Puppet マニフェストをリファクタリングするからテスト書くぞ、ってことで、 puppet-lxc-test-box に書いたように、テストするためのシステムコンテナを簡単に作る仕組みをつくったので、今度は実際にテストコードを書くためのベースをつくってみた。 rspec-lxc-test-box こんな感じでテストが書ける。 require 'container_spec_helper' describe 'nrpe' do it { should be_installed } it { should be_enabled } it { should be_running } end describe 'nagios-plugins-all' do it { shou

    yandod
    yandod 2013/03/24
  • Tiny Square Room |MPD @ Ubuntu Server で音楽再生

    ■ 前提 OS: ubuntu server edition 10.04.1 64bit サウンドカード: Prodigy HD2 Advance lspci や cat /proc/asound/cards ではちゃんと認識してるっぽい。 ls /proc/asound/card0 しても codec* がない。 ■ 問題 * その1 amixer や alsamixer が amixer: Mixer attach default error: No such file or directoryとかのエラーになる。 当然 aplay xxx.wav でも音は出ない。 * その2 sudo amixer すると、それなりに表示されるが、ボリュームコントロールっぽい ものがない。(Capabilities に pvolume を含むコントロールがない) alsa が HD2 にちゃんと対応

    yandod
    yandod 2013/03/24