]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
ceph-cm-ansible.git
10 years agodownstream-setup: ignore errors when disabling or enabling repos 55/head
Andrew Schoen [Tue, 23 Jun 2015 20:16:32 +0000 (15:16 -0500)]
downstream-setup: ignore errors when disabling or enabling repos

The lineinfile module fails if dest doesn't exist. We want this to fail
silently instead. The ansible output still does a good job of letting
you know a task failed without failing the entire playbook.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #54 from ceph/wip-precise-support
Zack Cerza [Mon, 22 Jun 2015 16:56:02 +0000 (10:56 -0600)]
Merge pull request #54 from ceph/wip-precise-support

testnode: do not start rpcbind on precise

10 years agotestnode: do not start rpcbind on precise 54/head
Andrew Schoen [Mon, 22 Jun 2015 16:44:35 +0000 (11:44 -0500)]
testnode: do not start rpcbind on precise

rpcbind does not provide a way to be managed with upstart on precise.
This creates a var we can use to toggle this task on and off per distro
as the other distros we support are ok with starting and enabling rpcbind.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #53 from ceph/wip-precise-sudo
Zack Cerza [Mon, 22 Jun 2015 15:07:06 +0000 (09:07 -0600)]
Merge pull request #53 from ceph/wip-precise-sudo

cobbler: set the mode to 0440 on /etc/sudoers.d/cephlab_sudo

10 years agocobbler: set the mode to 0440 on /etc/sudoers.d/cephlab_sudo 53/head
Andrew Schoen [Mon, 22 Jun 2015 15:00:53 +0000 (10:00 -0500)]
cobbler: set the mode to 0440 on /etc/sudoers.d/cephlab_sudo

Apparently most other distros default anything in /etc/sudoers.d to
0440 except precise. Precise, by default, sets the mode of
/etc/sudoers.d/cephlab_sudo to 0664 which completely breaks sudo usage.
This makes cobbler explicitly set the mode to 0440.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #49 from ceph/wip-vivid-support
Zack Cerza [Fri, 19 Jun 2015 19:28:32 +0000 (13:28 -0600)]
Merge pull request #49 from ceph/wip-vivid-support

Support for ubuntu vivid

10 years agoMerge pull request #52 from ceph/wip-disable-repo
Zack Cerza [Fri, 19 Jun 2015 16:37:45 +0000 (10:37 -0600)]
Merge pull request #52 from ceph/wip-disable-repo

downstream-setup: add tasks to disable and enable yum repos.

10 years agodownstream-setup: add tasks to disable and enable yum repos. 52/head
Andrew Schoen [Fri, 19 Jun 2015 15:49:39 +0000 (10:49 -0500)]
downstream-setup: add tasks to disable and enable yum repos.

This works similar to downloading yum_repos. You can specific a repo
file to disable using 'disable_yum_repos' and enable them by using
'enable_yum_repos'. If you use 'disable_yum_repos' with 'cleanup' it
will enable the repos listed in 'disable_yum_repos' - this feature is
used with teuthology and the Ansible task.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #51 from ceph/wip-downstream-cleanup
Zack Cerza [Thu, 18 Jun 2015 21:10:19 +0000 (15:10 -0600)]
Merge pull request #51 from ceph/wip-downstream-cleanup

downstream-setup: use 'cleanup' instead of 'teardown'

10 years agodownstream-setup: use 'cleanup' instead of 'teardown' 51/head
Andrew Schoen [Thu, 18 Jun 2015 20:13:45 +0000 (15:13 -0500)]
downstream-setup: use 'cleanup' instead of 'teardown'

We want this change because using 'teardown' within teuthology was
confusing because we already have a method called 'teardown' on
class-based tasks.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: enable nfs-server on rhel 7.x 49/head
Andrew Schoen [Wed, 17 Jun 2015 21:31:00 +0000 (16:31 -0500)]
testnode: enable nfs-server on rhel 7.x

In the port from ceph-qa-chef I decided to enable nfs-server by default
on all distros even though chef only enabled it for rhel 7.x. We've
since discovered that enabling it on vivid causes errors, so we're not
enabling it for all distros anymore. This makes sure we enable it still
on rhel 7.x.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: restart nfs-kernel-server and don't enable it.
Andrew Schoen [Wed, 17 Jun 2015 21:05:54 +0000 (16:05 -0500)]
testnode: restart nfs-kernel-server and don't enable it.

We found an issue where ansible would fail to enable nfs-kernel-server
on vivid. It's already enabled by default anyway, so let's remove that
to avoid the error.

Also, ceph-qa-chef used to only restart nfs-kernel-server for ubuntu and
didn't enable so let's go back to that functionality.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: do not provide custom repos or sources.list for vivid
Andrew Schoen [Tue, 16 Jun 2015 21:39:03 +0000 (16:39 -0500)]
testnode: do not provide custom repos or sources.list for vivid

We'll be using distro provided packages for vivid so skip over defining
our custom packages for vivid.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler: keep cobbler from messing with sources.list
Andrew Schoen [Tue, 16 Jun 2015 20:41:11 +0000 (15:41 -0500)]
cobbler: keep cobbler from messing with sources.list

We want this because on vivid we want to use the distro provided sources
and when we use the cobbler snippet it wipes out those values in
sources.list. On the other versions of ubuntu we use the testnodes
playbook to provide our own sources and repos because we are currently
building packages for those, but don't want that burden for vivid.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: add a var file for ubuntu trusty
Andrew Schoen [Tue, 16 Jun 2015 20:39:23 +0000 (15:39 -0500)]
testnode: add a var file for ubuntu trusty

There are some packages listed here that we install on other versions of
ubuntu but can't on trusty.  I'm unsure if these are actually needed
though or if they're just cruft.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: remove mencoder from package install list for ubuntu systems
Andrew Schoen [Tue, 16 Jun 2015 20:14:17 +0000 (15:14 -0500)]
testnode: remove mencoder from package install list for ubuntu systems

It was decided this was not needed any further, so let's stop installing
it.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: Add ubuntu vivid sshd_config
Andrew Schoen [Thu, 4 Jun 2015 15:05:38 +0000 (10:05 -0500)]
testnode: Add ubuntu vivid sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #47 from ceph/rhel-6-xfsprogs
Andrew Schoen [Wed, 17 Jun 2015 20:36:51 +0000 (15:36 -0500)]
Merge pull request #47 from ceph/rhel-6-xfsprogs

Intelligently enable repo sets

10 years agoIntelligently enable repo sets 47/head
Zack Cerza [Wed, 3 Jun 2015 18:18:05 +0000 (12:18 -0600)]
Intelligently enable repo sets

Before this, once we were subscribed, we never care *what* we were
subscribed to.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #50 from ceph/wip-selinux
Andrew Schoen [Wed, 17 Jun 2015 16:51:28 +0000 (11:51 -0500)]
Merge pull request #50 from ceph/wip-selinux

Enable SELinux on yum systems

10 years agoEnable SELinux on yum systems 50/head
Zack Cerza [Wed, 17 Jun 2015 16:31:38 +0000 (10:31 -0600)]
Enable SELinux on yum systems

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #46 from ceph/wip-ubuntu-network-snippet
Zack Cerza [Tue, 16 Jun 2015 16:45:31 +0000 (10:45 -0600)]
Merge pull request #46 from ceph/wip-ubuntu-network-snippet

cobbler: adds cephlab_ubuntu_network snippet

10 years agoMerge pull request #48 from ceph/wip-downstream-teardown
Zack Cerza [Tue, 16 Jun 2015 16:03:00 +0000 (10:03 -0600)]
Merge pull request #48 from ceph/wip-downstream-teardown

downstream-setup: make yum_repos clean up after itself on teardown

10 years agodownstream-setup: make yum_repos clean up after itself on teardown 48/head
Andrew Schoen [Mon, 15 Jun 2015 21:26:44 +0000 (16:26 -0500)]
downstream-setup: make yum_repos clean up after itself on teardown

This lets us pass a teardown==True var to downstream-setup with the
yum_repos var defined and it will instead remove the repos defined in
yum_repos instead of downloading them.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler: adds cephlab_ubuntu_network snippet 46/head
Andrew Schoen [Mon, 1 Jun 2015 20:33:17 +0000 (15:33 -0500)]
cobbler: adds cephlab_ubuntu_network snippet

This is used to set the network connectivity for ubuntu nodes after
imaging using DHCP.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd rhel-scalefs-for-rhel-6-server-rpms
Zack Cerza [Wed, 3 Jun 2015 18:17:42 +0000 (12:17 -0600)]
Add rhel-scalefs-for-rhel-6-server-rpms

For xfsprogs

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoInclude relevant vars in entitlements tag
Zack Cerza [Wed, 3 Jun 2015 18:16:41 +0000 (12:16 -0600)]
Include relevant vars in entitlements tag

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #45 from ceph/wip-rhel-hostname
Andrew Schoen [Tue, 2 Jun 2015 18:10:57 +0000 (13:10 -0500)]
Merge pull request #45 from ceph/wip-rhel-hostname

Also correct hostnames on RHEL6

10 years agoAlso correct hostnames on RHEL6 45/head
Zack Cerza [Tue, 2 Jun 2015 16:51:03 +0000 (10:51 -0600)]
Also correct hostnames on RHEL6

Fix them if they are 'localhost' as well.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRe-add --size to part line
Zack Cerza [Tue, 2 Jun 2015 16:21:08 +0000 (10:21 -0600)]
Re-add --size to part line

RHEL6 needs it and RHEL7 doesn't seem to mind.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #44 from ceph/wip-fix-kernel-logging
Andrew Schoen [Mon, 1 Jun 2015 21:46:17 +0000 (16:46 -0500)]
Merge pull request #44 from ceph/wip-fix-kernel-logging

Fix typo in kernel_logging.sh

10 years agoFix typo in kernel_logging.sh 44/head
Zack Cerza [Mon, 1 Jun 2015 21:45:14 +0000 (15:45 -0600)]
Fix typo in kernel_logging.sh

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #43 from ceph/wip-11825
Andrew Schoen [Mon, 1 Jun 2015 21:14:14 +0000 (16:14 -0500)]
Merge pull request #43 from ceph/wip-11825

Use all of /dev/sda for /

10 years agoUse all of /dev/sda for / 43/head
Zack Cerza [Mon, 1 Jun 2015 20:37:22 +0000 (14:37 -0600)]
Use all of /dev/sda for /

http://tracker.ceph.com/issues/11825

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #41 from ceph/wip-tag-kernel-logging
Andrew Schoen [Mon, 1 Jun 2015 20:32:20 +0000 (15:32 -0500)]
Merge pull request #41 from ceph/wip-tag-kernel-logging

Add kernel_logging tag

10 years agoMerge pull request #42 from ceph/wip-user-shell
Andrew Schoen [Mon, 1 Jun 2015 20:03:06 +0000 (15:03 -0500)]
Merge pull request #42 from ceph/wip-user-shell

Set all created users' shells to /bin/bash

10 years agoSet all created users' shells to /bin/bash 42/head
Zack Cerza [Mon, 1 Jun 2015 16:51:05 +0000 (10:51 -0600)]
Set all created users' shells to /bin/bash

They were ending up with sh, which is horrible

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #40 from ceph/wip-cobbler-iso-path
Andrew Schoen [Mon, 1 Jun 2015 14:48:19 +0000 (09:48 -0500)]
Merge pull request #40 from ceph/wip-cobbler-iso-path

Set iso_name and iso_path when not downloading

10 years agoAdd kernel_logging tag 41/head
Zack Cerza [Fri, 29 May 2015 23:50:45 +0000 (17:50 -0600)]
Add kernel_logging tag

So that we can easily run just those actions against testnodes

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoBump pre-ansible sleep to 30s
Zack Cerza [Fri, 29 May 2015 23:17:15 +0000 (17:17 -0600)]
Bump pre-ansible sleep to 30s

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoSet iso_name and iso_path when not downloading 40/head
Zack Cerza [Thu, 28 May 2015 21:36:15 +0000 (15:36 -0600)]
Set iso_name and iso_path when not downloading

Otherwise we bail when trying to clear the mount point

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #39 from ceph/wip-cobbler-repos
Ken Dreyer [Thu, 28 May 2015 21:26:49 +0000 (15:26 -0600)]
Merge pull request #39 from ceph/wip-cobbler-repos

Manage CM repos in cobbler role

10 years agoMerge pull request #38 from ceph/wip-chef-typica
Dan Mick [Wed, 27 May 2015 20:57:06 +0000 (13:57 -0700)]
Merge pull request #38 from ceph/wip-chef-typica

Port serial console grub work

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoManage CM repos in cobbler role 39/head
Zack Cerza [Wed, 27 May 2015 19:56:58 +0000 (13:56 -0600)]
Manage CM repos in cobbler role

These are used by cobbler after reimaging

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoPort serial console grub work 38/head
Zack Cerza [Wed, 27 May 2015 19:34:37 +0000 (13:34 -0600)]
Port serial console grub work

https://github.com/ceph/ceph-qa-chef/commit/22c21baafa562bd003d5a3102d44afdcf1d97a5b

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #10 from ceph/downstream-setup
Zack Cerza [Fri, 22 May 2015 18:03:38 +0000 (12:03 -0600)]
Merge pull request #10 from ceph/downstream-setup

Adds a new downstream_setup.yml playbook.

10 years agoMerge pull request #37 from ceph/wip-qa-ready
Andrew Schoen [Fri, 22 May 2015 17:20:42 +0000 (12:20 -0500)]
Merge pull request #37 from ceph/wip-qa-ready

Testnode: touch /ceph-qa-ready

10 years agoTestnode: touch /ceph-qa-ready 37/head
Zack Cerza [Thu, 21 May 2015 21:40:43 +0000 (15:40 -0600)]
Testnode: touch /ceph-qa-ready

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #30 from ceph/wip-epel-11628
Zack Cerza [Thu, 21 May 2015 18:05:31 +0000 (12:05 -0600)]
Merge pull request #30 from ceph/wip-epel-11628

Adds the ability to opt-out of enabling epel in the common role.

10 years agoMerge pull request #36 from ceph/cobbler-wget-no-retry
Andrew Schoen [Thu, 21 May 2015 18:05:11 +0000 (13:05 -0500)]
Merge pull request #36 from ceph/cobbler-wget-no-retry

Don't hit the post-install trigger multiple times

10 years agoMerge pull request #35 from ceph/cobbler-ubuntu-vivid
Zack Cerza [Thu, 21 May 2015 18:04:52 +0000 (12:04 -0600)]
Merge pull request #35 from ceph/cobbler-ubuntu-vivid

cobbler: one ubuntu preseed for trusty, precise and vivid

10 years agoDon't hit the post-install trigger multiple times 36/head
Zack Cerza [Thu, 21 May 2015 18:01:44 +0000 (12:01 -0600)]
Don't hit the post-install trigger multiple times

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agocobbler: remove the cephlab_trusty.preseed kickstart 35/head
Andrew Schoen [Wed, 20 May 2015 20:07:20 +0000 (15:07 -0500)]
cobbler: remove the cephlab_trusty.preseed kickstart

This has been obsoleted by cephlab_ubuntu.preseed.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler_profile: add the ability to set kernel options.
Andrew Schoen [Wed, 20 May 2015 19:10:28 +0000 (14:10 -0500)]
cobbler_profile: add the ability to set kernel options.

We can now provide custom kernel_options and kernel_options_post when
creating a profile. Updating the kernel_options are not idempotent
however as some kernel options are always return from the distro.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler_profile: move kickstart updating tasks into their own yml file.
Andrew Schoen [Tue, 19 May 2015 20:50:00 +0000 (15:50 -0500)]
cobbler_profile: move kickstart updating tasks into their own yml file.

This also introduce a var, profile_found, which we can reuse for
updating other parts of a profile like kernel options.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler: add tags to cobbler_profile roles in cobbler.yml
Andrew Schoen [Tue, 19 May 2015 14:51:30 +0000 (09:51 -0500)]
cobbler: add tags to cobbler_profile roles in cobbler.yml

This allows us to target each profile individually instead of running
the entire playbook to edit one profile.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler_profile: use the mount module instead of command to mount isos
Andrew Schoen [Mon, 18 May 2015 18:09:52 +0000 (13:09 -0500)]
cobbler_profile: use the mount module instead of command to mount isos

The mount module is idempotent, so we should use that instead.  Also,
clear the mount point each time so that if the playbook fails on the
next run it'll actually remount and complete the rest of the tasks
instead of skipping them because the iso is already mounted.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler_profile: add profiles for ubuntu precise, trusty and vivid.
Andrew Schoen [Mon, 18 May 2015 16:11:44 +0000 (11:11 -0500)]
cobbler_profile: add profiles for ubuntu precise, trusty and vivid.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler: add new ubuntu preseed and kernel snippet to defaults/main.yml
Andrew Schoen [Mon, 18 May 2015 16:43:52 +0000 (11:43 -0500)]
cobbler: add new ubuntu preseed and kernel snippet to defaults/main.yml

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler: adds a snippet to create post install kernel options.
Andrew Schoen [Fri, 15 May 2015 21:12:20 +0000 (16:12 -0500)]
cobbler: adds a snippet to create post install kernel options.

This snippet is used by the cephlab_preseed_late script to set the
GRUB_CMDLINE_LINUX value in /etc/defaults/grub to what's defined by
the system, profile or distro that's currently being imaged.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocobbler: adds a ubuntu preseed that can be used for multiple versions.
Andrew Schoen [Thu, 14 May 2015 21:31:34 +0000 (16:31 -0500)]
cobbler: adds a ubuntu preseed that can be used for multiple versions.

This uses the os_version cobbler variable to decide which version of
ubuntu it's using. This variable is set on the distro that is currently
using the cephlab_ubuntu preseed.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #34 from ceph/wip-distill-updates
Andrew Schoen [Wed, 20 May 2015 14:36:36 +0000 (09:36 -0500)]
Merge pull request #34 from ceph/wip-distill-updates

puddle: use distill configs from rcm-metadata.git

10 years agopuddle: skip some cleanup in ceph-distill 34/head
Ken Dreyer [Wed, 20 May 2015 03:25:03 +0000 (21:25 -0600)]
puddle: skip some cleanup in ceph-distill

The ceph-distill script was deleting some files that distill doesn't
create any more (because we now set "skip_phase = createiso"). Stop
attempting to delete these.

10 years agopuddle: distill uses "compose" tag
Ken Dreyer [Wed, 20 May 2015 00:50:48 +0000 (18:50 -0600)]
puddle: distill uses "compose" tag

See RT #345524

10 years agopuddle: use distill configs from rcm-metadata.git
Ken Dreyer [Tue, 19 May 2015 23:50:00 +0000 (17:50 -0600)]
puddle: use distill configs from rcm-metadata.git

Originally I thought that we could store each of distill's individual
configuration files in ceph-cm-ansible.git, but this is becoming
untenable because there are too many templated values, and I'm trying to
sync these files closely with the copies from Red Hat's rel-eng team.

This commit uses the git module to clone a rcm-metadata.git repository
to /etc/distill and alters the "ceph-distill" wrapper script to use that
location instead.

Since the individual templated files are no longer needed (the full
versions are in rcm-metadata.git), delete them from the tree here.

10 years agoMerge pull request #33 from ceph/wip-trigger
Andrew Schoen [Tue, 19 May 2015 21:08:14 +0000 (16:08 -0500)]
Merge pull request #33 from ceph/wip-trigger

Don't block while running the larger playbook

10 years agoDon't block while running the larger playbook 33/head
Zack Cerza [Tue, 19 May 2015 21:05:18 +0000 (15:05 -0600)]
Don't block while running the larger playbook

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #32 from ceph/wip-nginx-install
Andrew Schoen [Tue, 19 May 2015 20:18:04 +0000 (15:18 -0500)]
Merge pull request #32 from ceph/wip-nginx-install

puddle: move nginx params on to multiple lines

10 years agoAdds the ability to opt-out of enabling epel in the common role. 30/head
Andrew Schoen [Fri, 15 May 2015 14:16:43 +0000 (09:16 -0500)]
Adds the ability to opt-out of enabling epel in the common role.

Some of our labs should not be using epel.  This allows us to use
the enable_epel var to opt-out out of that per-lab by using the -secrets
repos.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agopuddle: move nginx params on to multiple lines 32/head
Ken Dreyer [Fri, 15 May 2015 21:46:03 +0000 (15:46 -0600)]
puddle: move nginx params on to multiple lines

Follow the convention of putting each parameter on multiple lines,
instead of cramming everything into one line.

This is a style change only; no functional change.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agodownstream-setup: add a task to remove a yum repo from /etc/yum.repos.d 10/head
Andrew Schoen [Mon, 18 May 2015 21:23:31 +0000 (16:23 -0500)]
downstream-setup: add a task to remove a yum repo from /etc/yum.repos.d

Using the remove_yum_repos var give a list of yum repos names to remove
from /etc/yum.repos.d. This gives a way for us to clean up yum repos
that we add with this role.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agodownstream-setup: adds a new downstream_setup.yml playbook.
Andrew Schoen [Thu, 30 Apr 2015 20:19:33 +0000 (15:19 -0500)]
downstream-setup: adds a new downstream_setup.yml playbook.

This playbook will be used to setup testnodes for downstream
testing by downloading arbitrary yum repos. The repos to install should
be passed in with the --extra-vars option to ansible-playbook.

The yum_repos var must be a list of hashes defining the url to download
the repo from and the name to save it as in /etc/yum.repos.d

For example:

  --extra-vars '{"yum_repos":[{"url": "<url>", "name": "name"}]}'

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #31 from ceph/wip-s3tests-11637
Zack Cerza [Mon, 18 May 2015 17:40:48 +0000 (11:40 -0600)]
Merge pull request #31 from ceph/wip-s3tests-11637

Install python-devel and python-virtualenv on rhel 7.x

10 years agoMerge pull request #24 from dmick/master
Andrew Schoen [Fri, 15 May 2015 22:04:03 +0000 (17:04 -0500)]
Merge pull request #24 from dmick/master

Add tools subdir containing vmlist.py script

10 years agoInstall python-devel and python-virtualenv on rhel 7.x 31/head
Andrew Schoen [Fri, 15 May 2015 14:42:35 +0000 (09:42 -0500)]
Install python-devel and python-virtualenv on rhel 7.x

re: http://tracker.ceph.com/issues/11637

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #29 from ceph/cobbler-import-distro
Andrew Schoen [Thu, 14 May 2015 20:02:49 +0000 (15:02 -0500)]
Merge pull request #29 from ceph/cobbler-import-distro

Add cobbler_role profile

10 years agoMove ISO dir/mountpoint creation to cobbler role 29/head
Zack Cerza [Thu, 14 May 2015 19:08:11 +0000 (13:08 -0600)]
Move ISO dir/mountpoint creation to cobbler role

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agocobbler: update distro signatures
Zack Cerza [Thu, 14 May 2015 18:52:48 +0000 (12:52 -0600)]
cobbler: update distro signatures

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd cobbler_role profile
Zack Cerza [Thu, 14 May 2015 00:05:22 +0000 (18:05 -0600)]
Add cobbler_role profile

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #28 from ceph/wip-fix-rhel6
Andrew Schoen [Wed, 13 May 2015 15:14:27 +0000 (10:14 -0500)]
Merge pull request #28 from ceph/wip-fix-rhel6

Fix RHEL6

10 years agoMerge pull request #27 from ceph/wip-11567
Zack Cerza [Tue, 12 May 2015 21:33:49 +0000 (15:33 -0600)]
Merge pull request #27 from ceph/wip-11567

Make rhel 7.0 tasks run on any rhel 7.x version.

10 years agoEnsure rpcbind is started before starting nfs-server. 27/head
Andrew Schoen [Tue, 12 May 2015 21:22:42 +0000 (16:22 -0500)]
Ensure rpcbind is started before starting nfs-server.

This fixes a bug where on rhel 7.1 nfs-server failed to start because
rpcbind was not running.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoInstall SELinux python bindings on RHEL6 28/head
Zack Cerza [Tue, 12 May 2015 20:57:13 +0000 (14:57 -0600)]
Install SELinux python bindings on RHEL6

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse a new snippet for configuring disks on RHEL
Zack Cerza [Tue, 12 May 2015 20:33:04 +0000 (14:33 -0600)]
Use a new snippet for configuring disks on RHEL

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMake rhel 7.0 tasks run on any rhel 7.x version.
Andrew Schoen [Tue, 12 May 2015 20:02:04 +0000 (15:02 -0500)]
Make rhel 7.0 tasks run on any rhel 7.x version.

This shouldn't have been restricted to only 7.0 in the first place. We
noticed this problem while testing rhel 7.1 and noticing that firewalld
was not disabled.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agovmlist.py: treat "-h/--host" case outside the normal flow 24/head
Dan Mick [Fri, 8 May 2015 21:27:33 +0000 (14:27 -0700)]
vmlist.py: treat "-h/--host" case outside the normal flow

Needlessly complex trying to mix the streams, and no reason for
a separate process when doing only one machine; needed to make
outputfile default to None anyway

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agovmlist.py: allow env to override config; add comment for Cfg class
Dan Mick [Fri, 8 May 2015 21:20:20 +0000 (14:20 -0700)]
vmlist.py: allow env to override config; add comment for Cfg class

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agovmlist.py: vmmachines -> vm_hosts, --machine -> --host
Dan Mick [Fri, 8 May 2015 21:19:09 +0000 (14:19 -0700)]
vmlist.py: vmmachines -> vm_hosts, --machine -> --host

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agovmlist.py: Allow outputfile == None for list_nova too
Dan Mick [Fri, 8 May 2015 21:05:53 +0000 (14:05 -0700)]
vmlist.py: Allow outputfile == None for list_nova too

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #26 from ceph/wip-fix-user-tag
Andrew Schoen [Fri, 8 May 2015 20:12:37 +0000 (15:12 -0500)]
Merge pull request #26 from ceph/wip-fix-user-tag

'user' tag, not 'users'

10 years ago'user' tag, not 'users' 26/head
Zack Cerza [Fri, 8 May 2015 20:04:07 +0000 (14:04 -0600)]
'user' tag, not 'users'

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #23 from ceph/wip-non-sudo-users
Zack Cerza [Thu, 7 May 2015 15:23:04 +0000 (09:23 -0600)]
Merge pull request #23 from ceph/wip-non-sudo-users

users: create users with sudo privs and some without

10 years agoMerge pull request #25 from ceph/wip-git
Andrew Schoen [Thu, 7 May 2015 14:05:45 +0000 (09:05 -0500)]
Merge pull request #25 from ceph/wip-git

Make sure git is installed

10 years agoMake sure git is installed 25/head
Zack Cerza [Wed, 6 May 2015 22:32:35 +0000 (16:32 -0600)]
Make sure git is installed

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd tools subdir containing vmlist.py script
Dan Mick [Wed, 6 May 2015 22:00:38 +0000 (15:00 -0700)]
Add tools subdir containing vmlist.py script

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agousers: creates users with sudo access and users without. 23/head
Andrew Schoen [Wed, 6 May 2015 20:18:00 +0000 (15:18 -0500)]
users: creates users with sudo access and users without.

Introduces a new list of users, managed_admin_users, which are given
sudo access.  The existing list, managed_users, are not not given sudo
access.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agousers: move create_users.yml into main.yml in the users role.
Andrew Schoen [Wed, 6 May 2015 19:33:14 +0000 (14:33 -0500)]
users: move create_users.yml into main.yml in the users role.

This just simplifies the structure a bit, there was really no need to
have that as a separate file.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #22 from ceph/wip-cobbler-selinux
Andrew Schoen [Wed, 6 May 2015 18:42:01 +0000 (13:42 -0500)]
Merge pull request #22 from ceph/wip-cobbler-selinux

Use SELinux permissive on RHEL

10 years agoUse SELinux permissive on RHEL 22/head
Zack Cerza [Wed, 6 May 2015 18:38:26 +0000 (12:38 -0600)]
Use SELinux permissive on RHEL

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #1 from ceph/users
Ken Dreyer [Wed, 6 May 2015 16:10:54 +0000 (10:10 -0600)]
Merge pull request #1 from ceph/users

Adds a users role and adds that role to cobbler.yml and testnodes.yml