Eu tenho os encantos armazenados em um repositório Git privado. Eu estou tentando usar juju-deployer
para implantar um encanto diretamente do repositório Git.
Digamos que o repositório do Git seja [email protected]:charms.git
e nesse repositório eu tenha um charme localizado no diretório trusty/rsyslog
. Eu quero ser capaz de definir o meu arquivo juju-deployer
YAML algo assim:
"rsyslog":
charm: rsyslog
# branch: "[email protected]:charms.git/trusty/rsyslog@4f18be16d9f920ebb7f725998e7d2d08bbdd64fe"
branch: "http://10.10.10.10/charms.git/trusty/rsyslog@4f18be16d9f920ebb7f725998e7d2d08bbdd64fe"
num_units: 1
to: 0
options:
messages_rotate: 30
nova_logs: true
syslog_rotate: 30
Mas continuo recebendo um erro do juju-deployer (versão 0.5.1.-3)
Traceback (most recent call last):
File "/usr/bin/juju-deployer", line 9, in <module>
load_entry_point('juju-deployer==0.5.1', 'console_scripts', 'juju-deployer')()
File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 135, in main
run()
File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 233, in run
importer.Importer(env, deployment, options).run()
File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 294, in run
self.get_charms()
File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 146, in get_charms
no_local_mods=self.options.no_local_mods)
File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 170, in fetch_charms
for charm in self.get_charms():
File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 162, in get_charms
yield Charm.from_service(k, self.repo_path, self.series, v)
File "/usr/lib/python2.7/dist-packages/deployer/charm.py", line 96, in from_service
return cls(name, charm_path, branch, rev, build, store_url)
File "/usr/lib/python2.7/dist-packages/deployer/charm.py", line 30, in __init__
self.vcs = self.get_vcs()
File "/usr/lib/python2.7/dist-packages/deployer/charm.py", line 44, in get_vcs
"Could not determine vcs backend for %s" % self.branch)
ValueError: Could not determine vcs backend for http://10.10.10.10/charms.git/trusty/rsyslog
Se eu tentar usar a linha comentada no arquivo YAML acima, isso me dará um erro diferente:
2015-09-15 08:10:08 Branching charm git @ precise/rsyslog
2015-09-15 08:10:08 Could not branch git to precise/rsyslog
fatal: repository 'git' does not exist
2015-09-15 08:10:08 Deployment stopped. run time: 0.27
Este erro é estranho porque não tenho QUALQUER menção de precisão no meu arquivo YAML.