]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
ceph-cm-ansible.git
8 years agoMerge pull request #289 from ceph/wip-rhel73
Dan Mick [Fri, 4 Nov 2016 00:04:13 +0000 (17:04 -0700)]
Merge pull request #289 from ceph/wip-rhel73

Add RHEL7.3 support

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoAdd RHEL7.3 support 289/head
David Galloway [Thu, 3 Nov 2016 18:23:28 +0000 (14:23 -0400)]
Add RHEL7.3 support

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agoMerge pull request #288 from ceph/wip-nrpe-rhel
Zack Cerza [Wed, 2 Nov 2016 22:56:42 +0000 (16:56 -0600)]
Merge pull request #288 from ceph/wip-nrpe-rhel

common: Install a few additional packages for NRPE

8 years agocommon: Install a few additional packages for NRPE 288/head
David Galloway [Wed, 2 Nov 2016 20:33:24 +0000 (16:33 -0400)]
common: Install a few additional packages for NRPE

check_load nagios plugin needs to be installed on RHEL and CentOS

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agoMerge pull request #286 from ceph/wip-users-become
Zack Cerza [Fri, 28 Oct 2016 19:57:45 +0000 (13:57 -0600)]
Merge pull request #286 from ceph/wip-users-become

Use "become: true" for users role

8 years agoUse "become: true" for users role 286/head
David Galloway [Fri, 28 Oct 2016 19:49:31 +0000 (15:49 -0400)]
Use "become: true" for users role

This is needed if the users role is called manually.  Typically it's
called via the common role and "become: true" is inherited.

But in the case of just needing to update update the teuthology_user's pubkeys with @all.pub, just calling the users role manually is quicker.  sudo access is obviously required to modify users and groups.

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agoMerge pull request #285 from ceph/wip-beta2
Zack Cerza [Wed, 19 Oct 2016 17:22:47 +0000 (11:22 -0600)]
Merge pull request #285 from ceph/wip-beta2

common: Change method of detecting beta distro

8 years agocommon: Change method of detecting beta distro 285/head
David Galloway [Tue, 18 Oct 2016 19:03:02 +0000 (15:03 -0400)]
common: Change method of detecting beta distro

It was recently discovered that Release Candidate ISOs of RHEL don't output "Beta" or
"Alpha" in `lsb_release` output.  Therefore, RHEL RC Distros were
registering with CDN and not putting beta_repos in place.

This new method registers every RHEL system with CDN, checks if there are
any available matching repos based on ansible_distribution_version, and
either:
  - Unregisters from CDN and runs beta_distros.yml if there are no CDN repos
  - Continues with setting up desired rhsm_repos

I also added some additional working to task descriptions to hopefully
claer up what's going on in this playbook since there are a lot of when
and if statements.

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agoMerge pull request #283 from ceph/wip-common-updates
Dan Mick [Fri, 23 Sep 2016 21:09:57 +0000 (14:09 -0700)]
Merge pull request #283 from ceph/wip-common-updates

Updates to common role

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agocommon: Add nagios check_mem command 283/head
David Galloway [Fri, 23 Sep 2016 20:24:16 +0000 (16:24 -0400)]
common: Add nagios check_mem command

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agocommon: Create nagios_allowed_hosts var for lab-specific nagios IPs
David Galloway [Thu, 22 Sep 2016 21:30:29 +0000 (17:30 -0400)]
common: Create nagios_allowed_hosts var for lab-specific nagios IPs

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agoAdd common.yml playbook file
David Galloway [Thu, 22 Sep 2016 21:22:11 +0000 (17:22 -0400)]
Add common.yml playbook file

Signed-off-by: David Galloway <dgallowa@redhat.com>
8 years agoMerge pull request #282 from ceph/wip-vmlist
Dan Mick [Wed, 14 Sep 2016 04:10:19 +0000 (21:10 -0700)]
Merge pull request #282 from ceph/wip-vmlist

Add vmhosts to vmlist.py and run virsh in read-only mode

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoAdd vmhosts to vmlist.py and run virsh in read-only mode 282/head
David Galloway [Tue, 13 Sep 2016 20:15:16 +0000 (16:15 -0400)]
Add vmhosts to vmlist.py and run virsh in read-only mode

'virsh -r' allows vmlist.py to work with RHEV hypervisor hosts

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #280 from ceph/wip-ubuntu-groups
Dan Mick [Wed, 24 Aug 2016 23:05:05 +0000 (16:05 -0700)]
Merge pull request #280 from ceph/wip-ubuntu-groups

users: Leave managed_admin_users' other group memberships alone

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agousers: Leave managed_admin_users' other group memberships alone 280/head
David Galloway [Tue, 23 Aug 2016 22:56:58 +0000 (18:56 -0400)]
users: Leave managed_admin_users' other group memberships alone

This change is mainly so the users role can be run on vps_hosts.

Previously, in order to update the ubuntu user's authorized_keys on
vps_hosts, the testnodes role had to be run which caused ubuntu to be
removed from the libvirtd group.

The ubuntu user is in managed_admin_users on vps_hosts so this will
ensure the user is added to sudo and left in the libvirtd group.

managed_users, on the other hand, we want to make sure are only in
groups we specify so the "Create all users without sudo access." task is
left as-is (without append: yes).

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #279 from ceph/wip-beta-repos
Josh Durgin [Tue, 16 Aug 2016 06:05:40 +0000 (23:05 -0700)]
Merge pull request #279 from ceph/wip-beta-repos

defaults: beta_repos must be a dict

9 years agodefaults: beta_repos must be a dict 279/head
Josh Durgin [Tue, 16 Aug 2016 05:42:46 +0000 (05:42 +0000)]
defaults: beta_repos must be a dict

This causes ceph-cm-ansible to fail every teuthology job due to
the bad default: 'with_dict expects a dict'

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #278 from ceph/wip-beta-distros
Zack Cerza [Mon, 15 Aug 2016 21:58:23 +0000 (15:58 -0600)]
Merge pull request #278 from ceph/wip-beta-distros

Add support for testing RHEL beta distros using internal repos

9 years agocobbler: redhat-lsb-core package is required for ansible_lsb variables 278/head
David Galloway [Thu, 11 Aug 2016 21:02:31 +0000 (17:02 -0400)]
cobbler: redhat-lsb-core package is required for ansible_lsb variables

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agotestnodes: Add support for internal RHEL beta repos
David Galloway [Thu, 11 Aug 2016 20:57:50 +0000 (16:57 -0400)]
testnodes: Add support for internal RHEL beta repos

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #277 from ceph/wip-teuthology
David Galloway [Fri, 5 Aug 2016 18:26:29 +0000 (14:26 -0400)]
Merge pull request #277 from ceph/wip-teuthology

teuthology role updates

9 years agoProvide a default for teuthology_yaml_extra 277/head
Zack Cerza [Tue, 2 Aug 2016 20:49:08 +0000 (14:49 -0600)]
Provide a default for teuthology_yaml_extra

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #272 from ceph/wip-teuth-kill
Zack Cerza [Fri, 5 Aug 2016 17:07:15 +0000 (11:07 -0600)]
Merge pull request #272 from ceph/wip-teuth-kill

teuthology: Create tkill group and grant tkill_users right to run `kill`

9 years agoteuthology: Create test-admins group and grant test_admins right to run `kill` 272/head
David Galloway [Thu, 28 Jul 2016 21:56:19 +0000 (17:56 -0400)]
teuthology: Create test-admins group and grant test_admins right to run `kill`

Fixes: http://tracker.ceph.com/issues/16614
Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #276 from ceph/wip-teuth-fixes
Zack Cerza [Tue, 2 Aug 2016 17:23:35 +0000 (11:23 -0600)]
Merge pull request #276 from ceph/wip-teuth-fixes

A couple fixes to teuthology role

9 years agoMerge pull request #274 from ceph/wip-profile-tasks
David Galloway [Tue, 2 Aug 2016 15:31:36 +0000 (11:31 -0400)]
Merge pull request #274 from ceph/wip-profile-tasks

Use the profile_tasks plugin

9 years agoUse the profile_tasks plugin 274/head
Zack Cerza [Mon, 1 Aug 2016 22:45:47 +0000 (16:45 -0600)]
Use the profile_tasks plugin

This will cause ansible to display timing information for tasks,
allowing us to see what's slow and potentially improve speed.

I've been using this locally for a while now. It's nice.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #275 from ceph/wip-ssh-retries
David Galloway [Tue, 2 Aug 2016 15:00:04 +0000 (11:00 -0400)]
Merge pull request #275 from ceph/wip-ssh-retries

Retry SSH connections five times

9 years agoMerge pull request #273 from ceph/wip-strategy-free
David Galloway [Tue, 2 Aug 2016 14:56:17 +0000 (10:56 -0400)]
Merge pull request #273 from ceph/wip-strategy-free

Use strategy: free on some playbooks

9 years agoRetry SSH connections five times 275/head
Zack Cerza [Mon, 1 Aug 2016 22:49:49 +0000 (16:49 -0600)]
Retry SSH connections five times

This may help with some of the problems we've been seeing.

Related to http://tracker.ceph.com/issues/16826
Inspired by
https://github.com/ansible/ansible/issues/13401#issuecomment-216768025

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoUse strategy: free on some playbooks 273/head
Zack Cerza [Mon, 1 Aug 2016 22:47:21 +0000 (16:47 -0600)]
Use strategy: free on some playbooks

See http://docs.ansible.com/ansible/playbooks_strategies.html#strategies

This could potentially improve performance.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoteuthology: Ignore any errors when disabling apache2 276/head
David Galloway [Thu, 28 Jul 2016 19:24:53 +0000 (15:24 -0400)]
teuthology: Ignore any errors when disabling apache2

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoteuthology: Additional packages needed to run bootstrap now
David Galloway [Thu, 28 Jul 2016 18:42:24 +0000 (14:42 -0400)]
teuthology: Additional packages needed to run bootstrap now

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #271 from ceph/wip-no-fw
Zack Cerza [Tue, 26 Jul 2016 15:52:11 +0000 (09:52 -0600)]
Merge pull request #271 from ceph/wip-no-fw

testnode: Disable firewalld and iptables regardless of OS version

9 years agotestnode: Disable firewalld and iptables regardless of OS version 271/head
David Galloway [Tue, 26 Jul 2016 15:08:57 +0000 (11:08 -0400)]
testnode: Disable firewalld and iptables regardless of OS version

iptables was recently found installed and running on a RHEL7 system.
Previous testnode playbook runs wouldn't catch this since it shouldn't
be installed in the first place.  This change ensures firewalld and
iptables are stopped on all RPM-based distros.

Fixes: http://tracker.ceph.com/issues/16809
Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #270 from ceph/wip-keys-retry
David Galloway [Mon, 25 Jul 2016 18:06:09 +0000 (14:06 -0400)]
Merge pull request #270 from ceph/wip-keys-retry

Add a retry when cloning the keys repo

9 years agoAdd a retry when cloning the keys repo 270/head
Zack Cerza [Mon, 25 Jul 2016 17:52:30 +0000 (11:52 -0600)]
Add a retry when cloning the keys repo

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #269 from ceph/wip-cobbler-gitrace
David Galloway [Wed, 20 Jul 2016 22:34:10 +0000 (18:34 -0400)]
Merge pull request #269 from ceph/wip-cobbler-gitrace

Use flock to avoid race conditions with git

9 years agoUse flock to avoid race conditions with git 269/head
Zack Cerza [Wed, 20 Jul 2016 22:29:39 +0000 (16:29 -0600)]
Use flock to avoid race conditions with git

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #265 from ceph/wip-nagios-common
Zack Cerza [Wed, 20 Jul 2016 15:24:22 +0000 (09:24 -0600)]
Merge pull request #265 from ceph/wip-nagios-common

Move NRPE setup to common role

9 years agoMerge pull request #267 from ceph/wip-no-gperftools-devel
vasukulkarni [Tue, 19 Jul 2016 16:40:30 +0000 (09:40 -0700)]
Merge pull request #267 from ceph/wip-no-gperftools-devel

testnode: drop gperftools-devel

9 years agoMerge pull request #268 from ceph/wip-failure-log-debug
Dan Mick [Mon, 18 Jul 2016 23:42:02 +0000 (16:42 -0700)]
Merge pull request #268 from ceph/wip-failure-log-debug

If a YAML error is hit, log the raw object

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoIf a YAML error is hit, log the raw object 268/head
Zack Cerza [Mon, 18 Jul 2016 22:50:01 +0000 (16:50 -0600)]
If a YAML error is hit, log the raw object

We are seeing: "RepresenterError: cannot represent an object: pcp"

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agotestnode: drop gperftools-devel 267/head
Ken Dreyer [Mon, 18 Jul 2016 17:32:57 +0000 (11:32 -0600)]
testnode: drop gperftools-devel

Stop installing the gperftools-devel package on testnodes, for the
following reasons:

1. Ceph does not require gperftools-devel at runtime, so installing it
   unnecessarily just slows everything down at this point.

2. When we want to test newer builds of gperftools (say, from RHEL 7.3),
   if the corresponding "gperftools-devel" package is not available on
   the test node, then yum will fail the transaction.

(Additionally, gperftools-devel is no longer in EPEL 7, and it has moved to
RHEL 7 Optional in RHEL 7.2 (https://bugzilla.redhat.com/1213879,
https://access.redhat.com/errata/RHEA-2015:2293). The "epel" list is no
longer the correct list for this package on redhat_7 and centos_7.)

9 years agoMerge pull request #266 from ceph/wip-timeout
Zack Cerza [Wed, 13 Jul 2016 18:46:36 +0000 (12:46 -0600)]
Merge pull request #266 from ceph/wip-timeout

use 120s instead of default 12s for cmd timeout

9 years agocommon: Update nrpe SELinux policy 265/head
David Galloway [Wed, 13 Jul 2016 00:59:13 +0000 (20:59 -0400)]
common: Update nrpe SELinux policy

This should've been done when smart.sh replaced smart.pl.
I just didn't notice smart.sh was getting denied by SELinux until I
started monitoring disks in Octo.  Evidently the new script requires
much more permission to run.

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocommon: Create README
David Galloway [Wed, 13 Jul 2016 00:11:50 +0000 (20:11 -0400)]
common: Create README

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocobbler: Install some ansible dependencies during kickstart
David Galloway [Tue, 12 Jul 2016 20:58:31 +0000 (16:58 -0400)]
cobbler: Install some ansible dependencies during kickstart

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocommon: Combine some nrpe-selinux package installations
David Galloway [Tue, 12 Jul 2016 20:48:46 +0000 (16:48 -0400)]
common: Combine some nrpe-selinux package installations

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocommon: Always install disk_monitoring scripts when nagios tag is called
David Galloway [Tue, 12 Jul 2016 19:34:13 +0000 (15:34 -0400)]
common: Always install disk_monitoring scripts when nagios tag is called

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocommon: Move smartmontools to disk_monitoring task
David Galloway [Tue, 12 Jul 2016 19:31:52 +0000 (15:31 -0400)]
common: Move smartmontools to disk_monitoring task

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocommon: Enable nrpe installation without epel repo on RHEL/CentOS
David Galloway [Tue, 12 Jul 2016 19:09:40 +0000 (15:09 -0400)]
common: Enable nrpe installation without epel repo on RHEL/CentOS

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agocommon: Move nrpe package install to common role
David Galloway [Mon, 11 Jul 2016 22:55:15 +0000 (18:55 -0400)]
common: Move nrpe package install to common role

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMove NRPE setup to common role
David Galloway [Mon, 11 Jul 2016 22:43:38 +0000 (18:43 -0400)]
Move NRPE setup to common role

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agotestnode: Configure firewalld (when enabled) for NRPE
David Galloway [Mon, 11 Jul 2016 22:10:17 +0000 (18:10 -0400)]
testnode: Configure firewalld (when enabled) for NRPE

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agouse 120s instead of default 12s for cmd timeout 266/head
vasukulkarni [Fri, 8 Jul 2016 00:40:48 +0000 (17:40 -0700)]
use 120s instead of default 12s for cmd timeout

Increase timeout from 12s to 120s for ansible cmds

Signed-off-by: Vasu Kulkarni vasu@redhat.com
9 years agoMerge pull request #264 from ceph/wip-16615
David Galloway [Thu, 7 Jul 2016 19:33:29 +0000 (15:33 -0400)]
Merge pull request #264 from ceph/wip-16615

Don't use a shallow copy of keys.git

9 years agoDon't use a shallow copy of keys.git 264/head
Zack Cerza [Thu, 7 Jul 2016 18:44:06 +0000 (12:44 -0600)]
Don't use a shallow copy of keys.git

http://tracker.ceph.com/issues/16615
Fixes: 16615
Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #263 from ceph/wip-cpan
Zack Cerza [Wed, 6 Jul 2016 15:53:10 +0000 (09:53 -0600)]
Merge pull request #263 from ceph/wip-cpan

testnodes: Install perl-CPAN on yum systems

9 years agotestnodes: Install perl-CPAN on yum systems 263/head
David Galloway [Fri, 1 Jul 2016 23:04:57 +0000 (19:04 -0400)]
testnodes: Install perl-CPAN on yum systems

perl-CPAN is required to install Amazon::S3 using the 'cpan' command

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #262 from ceph/wip-become
Zack Cerza [Fri, 1 Jul 2016 22:47:01 +0000 (16:47 -0600)]
Merge pull request #262 from ceph/wip-become

More Ansible v2 fixes

9 years agoBracket bare variables for Ansible v2 262/head
David Galloway [Thu, 30 Jun 2016 23:03:23 +0000 (19:03 -0400)]
Bracket bare variables for Ansible v2

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoAdd missing 'become' directive to a few more roles
David Galloway [Thu, 30 Jun 2016 23:00:30 +0000 (19:00 -0400)]
Add missing 'become' directive to a few more roles

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #261 from ceph/wip-rclocal-msg
Dan Mick [Thu, 30 Jun 2016 22:31:59 +0000 (15:31 -0700)]
Merge pull request #261 from ceph/wip-rclocal-msg

cobbler: Output message indicating Ansible is running after firstboot

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agocobbler: Output message indicating Ansible is running after firstboot 261/head
David Galloway [Thu, 30 Jun 2016 22:12:33 +0000 (18:12 -0400)]
cobbler: Output message indicating Ansible is running after firstboot

Fixes: http://tracker.ceph.com/issues/14297
Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #260 from ceph/wip-downstream-fixes
vasukulkarni [Thu, 30 Jun 2016 20:22:50 +0000 (13:22 -0700)]
Merge pull request #260 from ceph/wip-downstream-fixes

downstream_setup role fixes

9 years agodownstream_setup: Ensure role is only run on RHEL or CentOS 260/head
David Galloway [Thu, 30 Jun 2016 19:43:18 +0000 (15:43 -0400)]
downstream_setup: Ensure role is only run on RHEL or CentOS

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agodownstream_setup: Add 'become' privilege escalation directive
David Galloway [Thu, 30 Jun 2016 19:32:40 +0000 (15:32 -0400)]
downstream_setup: Add 'become' privilege escalation directive

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #259 from ceph/wip-entitlements-bools
vasukulkarni [Thu, 30 Jun 2016 18:57:15 +0000 (11:57 -0700)]
Merge pull request #259 from ceph/wip-entitlements-bools

common: Fix boolean expressions

9 years agoFix boolean expressions 259/head
Zack Cerza [Thu, 30 Jun 2016 18:56:37 +0000 (12:56 -0600)]
Fix boolean expressions

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRevert "Use ansible_user instead of ansible_ssh_user"
Zack Cerza [Thu, 30 Jun 2016 18:25:35 +0000 (12:25 -0600)]
Revert "Use ansible_user instead of ansible_ssh_user"

This reverts commit 7cc43cf253fc0dceea381ff11ed1d3e546f70ff8.

9 years agoMerge pull request #258 from ceph/wip-pip
David Galloway [Thu, 30 Jun 2016 18:21:01 +0000 (14:21 -0400)]
Merge pull request #258 from ceph/wip-pip

Add missing pip.yml

9 years agoAdd missing pip.yml 258/head
Zack Cerza [Thu, 30 Jun 2016 18:20:05 +0000 (12:20 -0600)]
Add missing pip.yml

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #255 from ceph/wip-ansible-2
David Galloway [Thu, 30 Jun 2016 18:02:25 +0000 (14:02 -0400)]
Merge pull request #255 from ceph/wip-ansible-2

DNM: Move to ansible 2

9 years agoMerge pull request #257 from ceph/wip-disable-firewalld
Dan Mick [Thu, 30 Jun 2016 00:47:53 +0000 (17:47 -0700)]
Merge pull request #257 from ceph/wip-disable-firewalld

testnodes: Disable firewalld service after reboot on RPM-based distros

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agotestnodes: Disable firewalld service after reboot on RPM-based distros 257/head
David Galloway [Wed, 29 Jun 2016 18:12:29 +0000 (14:12 -0400)]
testnodes: Disable firewalld service after reboot on RPM-based distros

Fixes: http://tracker.ceph.com/issues/16455
Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #256 from ceph/wip-global-cpan
Zack Cerza [Tue, 28 Jun 2016 15:35:10 +0000 (09:35 -0600)]
Merge pull request #256 from ceph/wip-global-cpan

testnodes: Configure cpan and install Amazon::S3 on all OSes

9 years agoDisable become for repo cloning (2.x method) 255/head
Zack Cerza [Mon, 27 Jun 2016 18:46:53 +0000 (12:46 -0600)]
Disable become for repo cloning (2.x method)

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRemove sudo role; replace with 'become' setting
Zack Cerza [Mon, 27 Jun 2016 18:50:38 +0000 (12:50 -0600)]
Remove sudo role; replace with 'become' setting

The old method of setting the default behavior for become/sudo has
changed in 2.x; fortunately the new way is a bit more elegant

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoQuote variables used by with_items
Zack Cerza [Thu, 18 Feb 2016 17:48:26 +0000 (10:48 -0700)]
Quote variables used by with_items

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agocobbler: Install ansible from PyPI
Zack Cerza [Thu, 18 Feb 2016 17:31:52 +0000 (10:31 -0700)]
cobbler: Install ansible from PyPI

The distros we're using don't ship ansible 2.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoLocate templates properly
Zack Cerza [Tue, 16 Feb 2016 22:28:46 +0000 (15:28 -0700)]
Locate templates properly

See https://github.com/ansible/ansible/issues/14161

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoUse ansible_user instead of ansible_ssh_user
Zack Cerza [Tue, 16 Feb 2016 21:55:19 +0000 (14:55 -0700)]
Use ansible_user instead of ansible_ssh_user

The option was renamed in 2.0

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #249 from ceph/wip-gw-networking
Dan Mick [Mon, 27 Jun 2016 22:09:47 +0000 (15:09 -0700)]
Merge pull request #249 from ceph/wip-gw-networking

Network configuration for gateway role

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agogateway: Add logrotate functionality 249/head
David Galloway [Fri, 17 Jun 2016 02:27:01 +0000 (22:27 -0400)]
gateway: Add logrotate functionality

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agogateway: Add README documentation for networking, firewall, fail2ban
David Galloway [Fri, 17 Jun 2016 01:58:33 +0000 (21:58 -0400)]
gateway: Add README documentation for networking, firewall, fail2ban

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agogateway: Add fail2ban support
David Galloway [Fri, 17 Jun 2016 00:00:18 +0000 (20:00 -0400)]
gateway: Add fail2ban support

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agogateway: Configure firewalld
David Galloway [Fri, 29 Apr 2016 20:52:05 +0000 (16:52 -0400)]
gateway: Configure firewalld

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agogateway: Enable server network config
David Galloway [Fri, 22 Apr 2016 22:24:16 +0000 (18:24 -0400)]
gateway: Enable server network config

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #252 from ceph/wip-cblr-wget
Dan Mick [Mon, 27 Jun 2016 20:32:03 +0000 (13:32 -0700)]
Merge pull request #252 from ceph/wip-cblr-wget

cobbler: testnode post-install rc.local fixes

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Zack Cerza <zack@redhat.com>
9 years agotestnodes: Configure cpan and install Amazon::S3 on all OSes 256/head
David Galloway [Mon, 27 Jun 2016 18:07:07 +0000 (14:07 -0400)]
testnodes: Configure cpan and install Amazon::S3 on all OSes

Fixes: http://tracker.ceph.com/issues/15316
Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoMerge pull request #254 from ceph/wip-clone-once
Dan Mick [Fri, 24 Jun 2016 00:24:32 +0000 (17:24 -0700)]
Merge pull request #254 from ceph/wip-clone-once

Only clone the keys repo once per execution

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoOnly clone the keys repo once per execution 254/head
Zack Cerza [Fri, 24 Jun 2016 00:22:23 +0000 (18:22 -0600)]
Only clone the keys repo once per execution

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #253 from ceph/wip-fast-keys
Dan Mick [Thu, 23 Jun 2016 23:48:22 +0000 (16:48 -0700)]
Merge pull request #253 from ceph/wip-fast-keys

users: Greatly speed up ssh pubkey deployment

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoPut the keys repo in ~/.cache/src/ by default 253/head
Zack Cerza [Thu, 23 Jun 2016 23:26:02 +0000 (17:26 -0600)]
Put the keys repo in ~/.cache/src/ by default

To avoid multiple invocations by different users on the same host
stepping on each other.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRemove unnecessary retry
Zack Cerza [Thu, 23 Jun 2016 22:30:33 +0000 (16:30 -0600)]
Remove unnecessary retry

Since each key isn't being fetched from a remote server any longer, we
can drop the retries.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoSpeed up key deployment by using the git repo
Zack Cerza [Thu, 23 Jun 2016 18:57:36 +0000 (12:57 -0600)]
Speed up key deployment by using the git repo

Instead of downloading each key over HTTPS from github.com, we can
simply clone the entire repo (with depth 1) and lookup each key using
the username.

On my laptop, execution time went from 2m49s to 29s.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agousers: Add defaults for keys_repo
Zack Cerza [Thu, 23 Jun 2016 18:27:08 +0000 (12:27 -0600)]
users: Add defaults for keys_repo

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agousers: split tasks/main.yml into separate files
Zack Cerza [Thu, 23 Jun 2016 18:23:57 +0000 (12:23 -0600)]
users: split tasks/main.yml into separate files

Signed-off-by: Zack Cerza <zack@redhat.com>