apt_repository 'datastax.sources' do uri 'https://**********************' components ['stable','main'] key 'https://*******************' end
在使用chef添加存储库以安装datastax Cassandra的同时,我在repo中获得了一个额外的组件xenial。
如果我手动操作,即在终端中,我在没有xenial的情况下就能正确操作
我的客户端是ubuntu 16.04
为什么我会得到这个组件,以及如何避免它?
设置 distribution node['lsb']['codename'] :
distribution
node['lsb']['codename']
apt_repository 'datastax.sources' do uri 'https://**********************' components ['stable','main'] key 'https://*******************' distribution '' end