From mboxrd@z Thu Jan 1 00:00:00 1970 From: Loic Dachary Subject: Re: installing paddles via ansible Date: Fri, 25 Mar 2016 18:19:33 +0100 Message-ID: <56F57325.6080807@dachary.org> References: <56D6D7F9.4010104@dachary.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from relay2-d.mail.gandi.net ([217.70.183.194]:56602 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501AbcCYRTi (ORCPT ); Fri, 25 Mar 2016 13:19:38 -0400 In-Reply-To: <56D6D7F9.4010104@dachary.org> Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Thierry Delamare Cc: Ceph Development Hi Thierry, Thanks for the hand holding today and congrats on your first paddles in= stallation :-) To summarize what we did: * git clone --recursive -b stable-1.9 https://github.com/ansible/ansibl= e.git * cd ansible ; source hacking/env-setup * cd ceph-cm-ansible * cat > /etc/ansible/secrets/paddles.yml < host < error while evaluating conditional: not p= addles_address.startswith('http') is displayed, finding the file responsible for it is best served by gre= pping the string after the | "Set paddles_address" in this case. There = is no way to ask ansible to display the line and the file where the err= or happens, in the same way a compiler would. * I discovered the expected structure of the secret file content by che= cking out the secret ansible secret repository, running find | grep pad= dles and uncrypting the secret file using the password found on a secre= t machine to which I luckily had access. But I did not show you the sec= ret password so it's still a secret. Cheers On 02/03/2016 13:09, Loic Dachary wrote: > Hi Zack, >=20 > I'm running ansible to deploy paddles as follows. I am missing secret= s. But I have no secrets :-) This is just a standalone instance for tes= ts, what would be the minimal way to define the secrets paddle needs ? >=20 > Thanks in advance for your help ! >=20 > $ cat host > [paddles] > 167.114.243.17 > [paddles:vars] > ansible_ssh_user=3Dubuntu > ansible_ssh_keys=3D/home/loic/.ssh/id_rsa >=20 > (virtualenv)loic@fold:~/software/ceph/ceph-cm-ansible$ ansible-playbo= ok -i host paddles.yml=20 >=20 > PLAY ****************************************************************= *********** >=20 > TASK [setup] ********************************************************= *********** > ok: [167.114.243.17] >=20 > TASK [users : Merge extra_admin_users into managed_admin_users] *****= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Remove managed_admin_users from managed_users] ********= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Filter the managed_users list] ************************= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Filter the managed_admin_users list] ******************= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Create all admin users with sudo access.] *************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{managed_admin_users}}'). This feature will be removed in a future= release.=20 > Deprecation warnings can be disabled by setting deprecation_warnings=3D= =46alse in=20 > ansible.cfg. >=20 > TASK [users : Create all users without sudo access.] ****************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{managed_users}}'). This feature will be removed in a future relea= se.=20 > Deprecation warnings can be disabled by setting deprecation_warnings=3D= =46alse in=20 > ansible.cfg. >=20 > TASK [users : Update authorized_keys for each user.] ****************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{managed_users|list + managed_admin_users|list}}'). This feature w= ill be=20 > removed in a future release. Deprecation warnings can be disabled by = setting=20 > deprecation_warnings=3DFalse in ansible.cfg. >=20 > TASK [users : Filter the revoked_users list] ************************= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Remove revoked users] *********************************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{revoked_users}}'). This feature will be removed in a future relea= se.=20 > Deprecation warnings can be disabled by setting deprecation_warnings=3D= =46alse in=20 > ansible.cfg. >=20 > TASK [common : Log the OS name, version and release] ****************= *********** > ok: [167.114.243.17] =3D> { > "msg": "Host 167.114.243.17 is running Ubuntu 14.04 (trusty)" > } >=20 > TASK [common : Including major version specific variables.] *********= *********** > ok: [167.114.243.17] =3D> (item=3D/home/loic/software/ceph/ceph-cm-an= sible/roles/common/vars/empty.yml) >=20 > TASK [common : include] *********************************************= *********** > skipping: [167.114.243.17] >=20 > TASK [common : include] *********************************************= *********** > included: /home/loic/software/ceph/ceph-cm-ansible/roles/common/tasks= /apt_systems.yml for 167.114.243.17 >=20 > TASK [common : Get the current timezone] ****************************= *********** > ok: [167.114.243.17] >=20 > TASK [common : Set the timezone in /etc/timezone] *******************= *********** > skipping: [167.114.243.17] >=20 > TASK [common : Inform the OS of the new timezone] *******************= *********** > skipping: [167.114.243.17] >=20 > TASK [common : include] *********************************************= *********** > included: /home/loic/software/ceph/ceph-cm-ansible/roles/common/tasks= /kerberos.yml for 167.114.243.17 >=20 > TASK [common : Install Kerberos Packages (RedHat)] ******************= *********** > skipping: [167.114.243.17] >=20 > TASK [common : Update apt cache.] ***********************************= *********** > ok: [167.114.243.17] >=20 > TASK [common : Install Kerberos Packages (Debian)] ******************= *********** > changed: [167.114.243.17] >=20 > TASK [common : Add krb5 config file] ********************************= *********** > changed: [167.114.243.17] >=20 > TASK [users : Merge extra_admin_users into managed_admin_users] *****= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Remove managed_admin_users from managed_users] ********= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Filter the managed_users list] ************************= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Filter the managed_admin_users list] ******************= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Create all admin users with sudo access.] *************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{managed_admin_users}}'). This feature will be removed in a future= release.=20 > Deprecation warnings can be disabled by setting deprecation_warnings=3D= =46alse in=20 > ansible.cfg. >=20 > TASK [users : Create all users without sudo access.] ****************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{managed_users}}'). This feature will be removed in a future relea= se.=20 > Deprecation warnings can be disabled by setting deprecation_warnings=3D= =46alse in=20 > ansible.cfg. >=20 > TASK [users : Update authorized_keys for each user.] ****************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{managed_users|list + managed_admin_users|list}}'). This feature w= ill be=20 > removed in a future release. Deprecation warnings can be disabled by = setting=20 > deprecation_warnings=3DFalse in ansible.cfg. >=20 > TASK [users : Filter the revoked_users list] ************************= *********** > skipping: [167.114.243.17] >=20 > TASK [users : Remove revoked users] *********************************= *********** > [DEPRECATION WARNING]: Using bare variables is deprecated. Update you= r=20 > playbooks so that the environment value uses the full variable syntax= =20 > ('{{revoked_users}}'). This feature will be removed in a future relea= se.=20 > Deprecation warnings can be disabled by setting deprecation_warnings=3D= =46alse in=20 > ansible.cfg. >=20 > TASK [paddles : Include secrets] ************************************= *********** > fatal: [167.114.243.17]: FAILED! =3D> {"censored": "the output has be= en hidden due to the fact that 'no_log: true' was specified for this re= sult"} > [WARNING]: Failure when attempting to use callback plugin > ( ansible/callback_plugins/failure_log.CallbackModule object at 0x7ff9c= 738af10>): > runner_on_failed() takes at least 3 arguments (3 given) >=20 >=20 > NO MORE HOSTS LEFT **************************************************= *********** > to retry, use: --limit @paddles.retry >=20 > PLAY RECAP **********************************************************= *********** > 167.114.243.17 : ok=3D9 changed=3D2 unreachable=3D0= failed=3D1 =20 >=20 >=20 --=20 Lo=C3=AFc Dachary, Artisan Logiciel Libre -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html