使用puppet的Apt模块在Ubuntu上安装spotify-client需要哪些木偶代码?
spotify installation instructions是:
添加Spotify存储库签名密钥以验证下载的包
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886
添加Spotify存储库
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
更新可用软件包列表
sudo apt-get update
- 醇>
安装Spotify
sudo apt-get install spotify-client
要添加存储库(步骤1),Puppet's Apt module说要执行此操作:
apt::key { 'spotify':
id => 'BBEBDCB318AD50EC6865090613B00F1FD2C19886',
server => 'hkp://keyserver.ubuntu.com:80',
}
但是,我不确定如何执行第2步,并添加存储库。如何使用Apt将echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
翻译成我的木偶清单?
答案 0 :(得分:1)
您实际上可以使用apt模块来创建apt源文件,而不必手动将它们作为文件进行管理。
这样的事情应该有效:
apt::key { 'spotify':
id => 'BBEBDCB318AD50EC6865090613B00F1FD2C19886',
server => 'hkp://keyserver.ubuntu.com:80',
}
->
apt::source {'spotify':
location => "http://repository.spotify.com",
release => "stable",
repos => "non-free",
}
->
package {'spotify-client':
ensure => "installed",
}
答案 1 :(得分:0)
<强> 1。添加Spotify存储库签名密钥以验证下载的包
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886
<强> 2。添加Spotify存储库
echo deb http://repository.spotify.com稳定非自由| sudo tee /etc/apt/sources.list.d/spotify.list
第3。将此行添加到/etc/apt/sources.list文件中:
deb http://security.debian.org/debian-security wheezy / updates main
<强> 4.Run 强>
sudo apt-get update
5.-运行
apt-get install libssl1.0.0
6.-运行
sudo apt-get install spotify-client