Я пытаюсь создать свое собственное очарование с помощью ansible. Когда я делаю то использование, "очарование создает", я получаю некоторые ошибки как указано ниже:
root@charms:~/charms/precise# charm create -t ansible ansi
INFO: Generating charm for ansi in ./ansi
INFO: No ansi in apt cache; creating an empty charm instead.
INFO:root:Loading charm helper config from charm-helpers.yaml.
INFO:root:Checking out lp:charm-helpers to /tmp/tmpJbpY6C/charm-helpers.
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 790 revisions.
WARNING:root:Could not sync: core. Neither a pyfile or directory, does it even exist?
WARNING:root:Could not sync: fetch. Neither a pyfile or directory, does it even exist?
WARNING:root:Could not sync: contrib.ansible. Neither a pyfile or directory, does it even exist?
WARNING:root:Could not sync: contrib.templating.contexts. Neither a pyfile or directory, does it even exist?
root@charms:~/charms/precise#
Я использую 2.3.4 версии амулета и имею последние версии Python и установленного ansible.
root@charms:~# juju --version
2.3.4-xenial-amd64
root@charms:~#
Я также установил пакет инструментов очарования.
root@charms:~# dpkg -l | grep charm
ii charm 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2 amd64 Tool for publishing and maintaining Juju charms
ii charm-tools 2.2.0-0ubuntu1~ubuntu16.04.1~ppa2 all Tools for maintaining Juju charms
ii gucharmap 1:3.18.2-1ubuntu1 amd64 Unicode character picker and font browser
ii libgucharmap-2-90-7:amd64 1:3.18.2-1ubuntu1 amd64 Unicode browser widget library (shared library)
ii python-libcharmstore 0.0.3-0ubuntu1 all Python library to access Juju charmstore data
ii python-theblues 0.3.7-0ubuntu1~ubuntu16.04.1~ppa2 all Python library for using the Juju charm store API
root@charms:~#
Как я получаю пропавших без вести pyfiles для ядра, выборки, contrib.ansible, contrib.templating.contexts?
Помогите.
Сделать очарование, которое использует ansible, не требуется, что Вы используете шаблон ansible. можно просто создать очарование с шаблоном по умолчанию и добавить ansible слой. Как сделать, это может быть найдено в этом сообщении. Удостоверьтесь, что Вы используете поспешный пакет очарования и удаляете способный пакет.
sudo apt-get purge charm
sudo snap install charm
charm create ansi
Теперь Ваше очарование будет создано, и можно начать писать код для очарования.