80
80
pocket = source.split(':')[1]
81
81
with open('/etc/apt/sources.list.d/cloud-archive.list', 'w') as apt:
82
82
apt.write(CLOUD_ARCHIVE.format(pocket))
83
if source.startswith('http:'):
84
if source.startswith('http://ceph.com'):
85
with open('/etc/apt/sources.list.d/ceph.list', 'w') as apt:
86
apt.write("deb " + source + "\n")
83
if source.startswith('http:') and not source.startswith('http://ceph.com'):
84
with open('/etc/apt/sources.list.d/ceph.list', 'w') as apt:
85
apt.write("deb " + source + "\n")
86
key = config_get('key')
91
"'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'",
90
'adv', '--keyserver keyserver.ubuntu.com',
97
93
subprocess.check_call(cmd)
99
with open('/etc/apt/sources.list.d/ceph.list', 'w') as apt:
100
apt.write("deb " + source + "\n")
101
key = config_get('key')
105
'adv', '--keyserver keyserver.ubuntu.com',
108
subprocess.check_call(cmd)
94
if source.startswith('http://ceph.com'):
95
with open('/etc/apt/sources.list.d/ceph.list', 'w') as apt:
96
apt.write("deb " + source + "\n")
97
subprocess.check_call(["wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | sudo apt-key add -"], shell=True)
102
subprocess.check_call(cmd)
110
105
def enable_pocket(pocket):
111
106
apt_sources = "/etc/apt/sources.list"