]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
ceph-cm-ansible.git
10 years agocobbler: install git 79/head
Zack Cerza [Wed, 15 Jul 2015 17:47:28 +0000 (11:47 -0600)]
cobbler: install git

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMake firewall changes immediate
Zack Cerza [Wed, 15 Jul 2015 16:50:34 +0000 (10:50 -0600)]
Make firewall changes immediate

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #76 from ceph/wip-cobbler-rh-firewall
Andrew Schoen [Wed, 15 Jul 2015 16:36:33 +0000 (11:36 -0500)]
Merge pull request #76 from ceph/wip-cobbler-rh-firewall

Manage the firewall on RHEL/CentOS 6/7

10 years agoManage the firewall on RHEL/CentOS 6/7 76/head
Zack Cerza [Wed, 15 Jul 2015 16:31:44 +0000 (10:31 -0600)]
Manage the firewall on RHEL/CentOS 6/7

On EL7, poke holes for http and https. On EL6, just stop iptables.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #74 from ceph/wip-fix-entitlements
Andrew Schoen [Tue, 14 Jul 2015 16:41:48 +0000 (11:41 -0500)]
Merge pull request #74 from ceph/wip-fix-entitlements

Fix entitlements

10 years agoMerge pull request #68 from ceph/wip-var-docs
Dan Mick [Tue, 14 Jul 2015 16:41:03 +0000 (09:41 -0700)]
Merge pull request #68 from ceph/wip-var-docs

docs: explain where to define variables for use in roles

10 years agoFix replace_repos logic 74/head
Zack Cerza [Tue, 14 Jul 2015 01:08:24 +0000 (19:08 -0600)]
Fix replace_repos logic

The issues were with quoting of booleans, and |success vs. .rc == 0

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix logic of finding entitlements.yml
Zack Cerza [Tue, 14 Jul 2015 00:59:54 +0000 (18:59 -0600)]
Fix logic of finding entitlements.yml

We were mistakenly checking for the existence of entitlements.yml on the
*remote* end.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agodocs: explain where to define variables for use in roles 68/head
Andrew Schoen [Wed, 8 Jul 2015 15:52:21 +0000 (10:52 -0500)]
docs: explain where to define variables for use in roles

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #73 from ceph/wip-12256
Zack Cerza [Fri, 10 Jul 2015 14:52:56 +0000 (08:52 -0600)]
Merge pull request #73 from ceph/wip-12256

DNM: roles used by teuthology should not require a secrets repo

10 years agoansible-managed: skip adding pub_keys if vars is not defined 73/head
Andrew Schoen [Thu, 9 Jul 2015 21:49:14 +0000 (16:49 -0500)]
ansible-managed: skip adding pub_keys if vars is not defined

This lets this play gracefully skip if ansible_user and ansible_ssh_keys
is not defined.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocommon: default the epel_mirror_baseurl var
Andrew Schoen [Thu, 9 Jul 2015 21:22:55 +0000 (16:22 -0500)]
common: default the epel_mirror_baseurl var

Defaults to the value used in our sepia lab.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: default the gitbuilder_host var
Andrew Schoen [Thu, 9 Jul 2015 21:21:30 +0000 (16:21 -0500)]
testnode: default the gitbuilder_host var

Defaults to the value used in our sepia lab.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: set a default for the var ntp_servers
Andrew Schoen [Thu, 9 Jul 2015 21:13:03 +0000 (16:13 -0500)]
testnode: set a default for the var ntp_servers

Defaults to the value used in our sepia lab.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: default git_mirror_host
Andrew Schoen [Thu, 9 Jul 2015 21:01:45 +0000 (16:01 -0500)]
testnode: default git_mirror_host

Defaults to the value used in our sepia lab

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: default mirror_host var
Andrew Schoen [Thu, 9 Jul 2015 20:51:21 +0000 (15:51 -0500)]
testnode: default mirror_host var

This defaults to the value used in our sepia lab.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agocreates a new sudo role that ensures all plays are ran with sudo
Andrew Schoen [Thu, 9 Jul 2015 20:18:31 +0000 (15:18 -0500)]
creates a new sudo role that ensures all plays are ran with sudo

This should be added as a dependancy to any other roles that require
sudo. This commits adds it to ansible-managed, common and testnode.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotestnode: make lab_domain an optional var
Andrew Schoen [Thu, 9 Jul 2015 19:26:05 +0000 (14:26 -0500)]
testnode: make lab_domain an optional var

lab_domain is used to strip the domain from the nodes hostname, this
allows that task to be skipped if lab_domain isn't provided.  I believe
we only do this because of some quirk in how cobbler images our rhel
nodes, we might not even need this functionality.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #72 from dachary/wip-fstab
Andrew Schoen [Thu, 9 Jul 2015 20:36:42 +0000 (15:36 -0500)]
Merge pull request #72 from dachary/wip-fstab

implement modify_fstab to skip /etc/fstab modification

10 years agoimplement modify_fstab to persist mount options in /etc/fstab 72/head
Loic Dachary [Thu, 9 Jul 2015 14:48:11 +0000 (16:48 +0200)]
implement modify_fstab to persist mount options in /etc/fstab

http://tracker.ceph.com/issues/12250 Fixes: #12250

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #69 from ceph/wip-cobbler-httpd
Andrew Schoen [Thu, 9 Jul 2015 17:32:52 +0000 (12:32 -0500)]
Merge pull request #69 from ceph/wip-cobbler-httpd

Help users locate cobbler's web UI

10 years agoHelp users locate cobbler's web UI 69/head
Zack Cerza [Wed, 8 Jul 2015 21:39:52 +0000 (15:39 -0600)]
Help users locate cobbler's web UI

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #67 from ceph/wip-fix-defaults
Andrew Schoen [Thu, 9 Jul 2015 14:28:50 +0000 (09:28 -0500)]
Merge pull request #67 from ceph/wip-fix-defaults

Skip ansible_user creation if it is undefined

10 years agoMerge pull request #70 from ceph/wip-no-ubuntu-resolvconf
Zack Cerza [Wed, 8 Jul 2015 22:49:28 +0000 (16:49 -0600)]
Merge pull request #70 from ceph/wip-no-ubuntu-resolvconf

testnode: do not modify resolv.conf on ubuntu

10 years agotestnode: do not modify resolv.conf on ubuntu 70/head
Andrew Schoen [Wed, 8 Jul 2015 21:48:16 +0000 (16:48 -0500)]
testnode: do not modify resolv.conf on ubuntu

There is no need to modify resolv.conf for ubuntu anymore.  When using
cobbler this is set by using the resolvconf var in the cobbler role. For
vms, like ones created by openstack, this allows ubuntu nodes to use the
resolv.conf already provided.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoSkip ansible_user creation if it is undefined 67/head
Zack Cerza [Tue, 7 Jul 2015 22:51:35 +0000 (16:51 -0600)]
Skip ansible_user creation if it is undefined

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #66 from ceph/wip-puddle-updates
Andrew Schoen [Tue, 7 Jul 2015 16:38:01 +0000 (11:38 -0500)]
Merge pull request #66 from ceph/wip-puddle-updates

Puddle updates

10 years agopuddle: add ceph 1.3 async 66/head
Ken Dreyer [Mon, 6 Jul 2015 21:52:45 +0000 (15:52 -0600)]
puddle: add ceph 1.3 async

Add a configuration file to do Puddle generation for ceph 1.3 async.

10 years agopuddle: update rh-common errata
Ken Dreyer [Mon, 6 Jul 2015 21:52:45 +0000 (15:52 -0600)]
puddle: update rh-common errata

Update Puddle's configuration for the latest RH-COMMON errata currently
in progress.

10 years agopuddle: update URL variable conventions
Ken Dreyer [Mon, 6 Jul 2015 21:52:45 +0000 (15:52 -0600)]
puddle: update URL variable conventions

1) Remove "_z" from the RHEL repository variables. There's no point in
distinguishing "RHEL 7 z" from "RHEL 7".

2) Add "_server" to distinguish the RHEL Server variant from the
Workstation/Client/ComputeNode variants.

10 years agoMerge pull request #65 from ceph/wip-yum-tx
Ken Dreyer [Tue, 7 Jul 2015 00:22:27 +0000 (18:22 -0600)]
Merge pull request #65 from ceph/wip-yum-tx

Remove saved yum transactions

10 years agoRemove saved yum transactions 65/head
Zack Cerza [Mon, 6 Jul 2015 23:53:05 +0000 (17:53 -0600)]
Remove saved yum transactions

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoDon't try to remove a missing package
Zack Cerza [Mon, 6 Jul 2015 23:00:26 +0000 (17:00 -0600)]
Don't try to remove a missing package

My previous commit had a bug. First, check if ceph-debuginfo is present.
If it's not, don't try to remove it.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #64 from ceph/wip-bz-1234967
Andrew Schoen [Mon, 6 Jul 2015 21:36:53 +0000 (16:36 -0500)]
Merge pull request #64 from ceph/wip-bz-1234967

Work around BZ#1234967

10 years agoWork around BZ#1234967 64/head
Zack Cerza [Mon, 6 Jul 2015 20:55:54 +0000 (14:55 -0600)]
Work around BZ#1234967

We have some corrupt ceph-debuginfo packages that are causing yum to die
with a UnicodeDecodeError. Use rpm to remove them for now.

https://bugzilla.redhat.com/show_bug.cgi?id=1234967

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #63 from ceph/wip-skip-entitlements
Andrew Schoen [Thu, 2 Jul 2015 21:22:12 +0000 (16:22 -0500)]
Merge pull request #63 from ceph/wip-skip-entitlements

Gracefully skip registration

10 years agoMerge pull request #62 from ceph/wip-usermod
Andrew Schoen [Thu, 2 Jul 2015 21:20:03 +0000 (16:20 -0500)]
Merge pull request #62 from ceph/wip-usermod

Don't modify the teuthology_user if it is in use

10 years agoGracefully skip registration 63/head
Zack Cerza [Thu, 2 Jul 2015 18:55:32 +0000 (12:55 -0600)]
Gracefully skip registration

If entitlements.yml is not found, don't attempt to register

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoDon't modify the teuthology_user if it is in use 62/head
Zack Cerza [Thu, 2 Jul 2015 20:41:30 +0000 (14:41 -0600)]
Don't modify the teuthology_user if it is in use

This is to work around cases where the user exists, with a different
uid, and we are currently logged in as that user:

msg: usermod: user ubuntu is currently logged in

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #61 from ceph/wip-user-filter
Zack Cerza [Wed, 1 Jul 2015 15:26:33 +0000 (09:26 -0600)]
Merge pull request #61 from ceph/wip-user-filter

users: add a 'users' var to act as a filter

10 years agousers: add a 'users' var to act as a filter 61/head
Andrew Schoen [Wed, 1 Jul 2015 15:16:18 +0000 (10:16 -0500)]
users: add a 'users' var to act as a filter

If 'users' is provided it will filter 'managed_users'
and 'managed_admin_users' by the usernames provided in 'users'.

'users' must be a list of usernames as strings.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #59 from ceph/wip-readme-updates
Zack Cerza [Wed, 1 Jul 2015 14:40:34 +0000 (08:40 -0600)]
Merge pull request #59 from ceph/wip-readme-updates

readme updates explaining the use of a separate secrets repo

10 years agoMerge pull request #58 from ceph/wip-user-docs
Zack Cerza [Wed, 1 Jul 2015 14:40:07 +0000 (08:40 -0600)]
Merge pull request #58 from ceph/wip-user-docs

users: add documentation for the users role

10 years agoMerge pull request #56 from ceph/wip-cobbler-complete
Andrew Schoen [Tue, 30 Jun 2015 15:54:09 +0000 (10:54 -0500)]
Merge pull request #56 from ceph/wip-cobbler-complete

Fully deploy a cobbler node

10 years agoFormat multiline tasks more nicely 56/head
Zack Cerza [Tue, 30 Jun 2015 15:52:30 +0000 (09:52 -0600)]
Format multiline tasks more nicely

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFormat multiline tasks more nicely
Zack Cerza [Thu, 25 Jun 2015 16:14:43 +0000 (10:14 -0600)]
Format multiline tasks more nicely

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFormat multiline tasks more nicely
Zack Cerza [Thu, 25 Jun 2015 16:11:53 +0000 (10:11 -0600)]
Format multiline tasks more nicely

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRun cobbler sync at the end of cobbler_systems
Zack Cerza [Tue, 23 Jun 2015 21:13:16 +0000 (15:13 -0600)]
Run cobbler sync at the end of cobbler_systems

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoCreate /root/.ssh before putting keys there
Zack Cerza [Tue, 23 Jun 2015 19:30:59 +0000 (13:30 -0600)]
Create /root/.ssh before putting keys there

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMove cobbler system population to new role
Zack Cerza [Tue, 23 Jun 2015 19:29:36 +0000 (13:29 -0600)]
Move cobbler system population to new role

This creates the new cobbler_systems role, which is run after the
cobbler and cobbler_profile roles

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoSet the server by editing /etc/cobbler/settings
Zack Cerza [Fri, 19 Jun 2015 22:10:22 +0000 (16:10 -0600)]
Set the server by editing /etc/cobbler/settings

Otherwise, using 'cobbler setting edit' might not work

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAlways include package-type vars
Zack Cerza [Fri, 19 Jun 2015 22:10:06 +0000 (16:10 -0600)]
Always include package-type vars

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoSet pxe_just_once to 1
Zack Cerza [Fri, 19 Jun 2015 16:13:40 +0000 (10:13 -0600)]
Set pxe_just_once to 1

Otherwise we re-provision on every boot

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoTell ansible to ignore host keys
Zack Cerza [Thu, 18 Jun 2015 23:08:56 +0000 (17:08 -0600)]
Tell ansible to ignore host keys

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoSymlink /etc/ansible/{hosts,secrets}
Zack Cerza [Thu, 18 Jun 2015 23:08:09 +0000 (17:08 -0600)]
Symlink /etc/ansible/{hosts,secrets}

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agocephlab_preseed_late: exit with status 0
Zack Cerza [Thu, 18 Jun 2015 22:02:00 +0000 (16:02 -0600)]
cephlab_preseed_late: exit with status 0

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoInstall gawk
Zack Cerza [Thu, 18 Jun 2015 20:59:49 +0000 (14:59 -0600)]
Install gawk

For snippets/cephlab_post_install_kernel_options

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAfter restarting cobbler, wait for it to start
Zack Cerza [Fri, 12 Jun 2015 18:27:16 +0000 (12:27 -0600)]
After restarting cobbler, wait for it to start

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd virtualenv to .gitignore
Zack Cerza [Fri, 12 Jun 2015 16:15:47 +0000 (10:15 -0600)]
Add virtualenv to .gitignore

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd a 'settings' tag
Zack Cerza [Fri, 12 Jun 2015 15:28:51 +0000 (09:28 -0600)]
Add a 'settings' tag

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse nmap instead of ncat for port scanning
Zack Cerza [Fri, 12 Jun 2015 15:19:15 +0000 (09:19 -0600)]
Use nmap instead of ncat for port scanning

netcat is apparently unavailable on RHEL7

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoInstall extra cobbler packages for yum/apt systems
Zack Cerza [Wed, 10 Jun 2015 23:35:30 +0000 (17:35 -0600)]
Install extra cobbler packages for yum/apt systems

syslinux is for bootloaders; pykickstart is for kickstart file
generation; fence-agents is for IPMI etc. support; nmap is for port
scanning.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMake the cobbler role pull in the secrets role
Zack Cerza [Wed, 10 Jun 2015 23:39:05 +0000 (17:39 -0600)]
Make the cobbler role pull in the secrets role

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRun cobbler sync and cobbler check
Zack Cerza [Wed, 10 Jun 2015 23:37:16 +0000 (17:37 -0600)]
Run cobbler sync and cobbler check

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoEnable tftpd
Zack Cerza [Wed, 10 Jun 2015 23:36:59 +0000 (17:36 -0600)]
Enable tftpd

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoSet server, next_server and signature_url
Zack Cerza [Wed, 10 Jun 2015 23:35:10 +0000 (17:35 -0600)]
Set server, next_server and signature_url

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoEnsure cobbler and httpd are started *and* enabled
Zack Cerza [Fri, 5 Jun 2015 18:21:04 +0000 (12:21 -0600)]
Ensure cobbler and httpd are started *and* enabled

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoDeep-merge distros and extra_distros
Zack Cerza [Fri, 5 Jun 2015 18:17:54 +0000 (12:17 -0600)]
Deep-merge distros and extra_distros

So that we can override e.g. a mirror URL and keep all the other key/value
pairs

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd and use SHA256 when downloading ISOs
Zack Cerza [Fri, 5 Jun 2015 18:17:05 +0000 (12:17 -0600)]
Add and use SHA256 when downloading ISOs

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoPopulate systems
Zack Cerza [Fri, 5 Jun 2015 17:46:33 +0000 (11:46 -0600)]
Populate systems

Disable netboot by default, so we don't accidentally reimage systems
unintentionally

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd cobbler SSH keys from secrets repo
Zack Cerza [Thu, 4 Jun 2015 20:50:07 +0000 (14:50 -0600)]
Add cobbler SSH keys from secrets repo

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd tasks for yum and apt systems
Zack Cerza [Thu, 4 Jun 2015 17:00:16 +0000 (11:00 -0600)]
Add tasks for yum and apt systems

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd vars for yum and apt systems
Zack Cerza [Thu, 4 Jun 2015 16:59:49 +0000 (10:59 -0600)]
Add vars for yum and apt systems

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUpload etc_files
Zack Cerza [Thu, 4 Jun 2015 16:58:56 +0000 (10:58 -0600)]
Upload etc_files

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd tasks to update settings
Zack Cerza [Thu, 4 Jun 2015 16:57:51 +0000 (10:57 -0600)]
Add tasks to update settings

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd .gitignore
Zack Cerza [Thu, 4 Jun 2015 16:57:21 +0000 (10:57 -0600)]
Add .gitignore

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd etc_files and settings
Zack Cerza [Thu, 4 Jun 2015 16:56:22 +0000 (10:56 -0600)]
Add etc_files and settings

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd /etc/cobbler/users.digest
Zack Cerza [Thu, 4 Jun 2015 16:55:38 +0000 (10:55 -0600)]
Add /etc/cobbler/users.digest

This sets the cobbler password

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #60 from ceph/wip-ansible-user-ssh-keys
Andrew Schoen [Fri, 26 Jun 2015 22:15:04 +0000 (17:15 -0500)]
Merge pull request #60 from ceph/wip-ansible-user-ssh-keys

Change 'ssh_keys' to 'ansible_user_ssh_keys' to clarify usage

10 years agoChange 'ssh_keys' to 'ansible_user_ssh_keys' to clarify usage 60/head
Dan Mick [Fri, 26 Jun 2015 21:42:25 +0000 (14:42 -0700)]
Change 'ssh_keys' to 'ansible_user_ssh_keys' to clarify usage

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agousers: add documentation for the users role 58/head
Andrew Schoen [Thu, 25 Jun 2015 14:58:12 +0000 (09:58 -0500)]
users: add documentation for the users role

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoreadme updates explaining the use of a separate secrets repo 59/head
Andrew Schoen [Thu, 25 Jun 2015 20:21:12 +0000 (15:21 -0500)]
readme updates explaining the use of a separate secrets repo

We store everything related to our inventory in a repo separate from
this one. This commit explains that a bit better and the reasoning
behind it.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUse |sort instead of .sort()
Zack Cerza [Tue, 23 Jun 2015 23:43:00 +0000 (17:43 -0600)]
Use |sort instead of .sort()

The latter does an in-place sort, which meant we were comparing '' to
''. Whoops.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #57 from ceph/wip-fix-ubuntu-repos
Zack Cerza [Tue, 23 Jun 2015 21:26:12 +0000 (15:26 -0600)]
Merge pull request #57 from ceph/wip-fix-ubuntu-repos

testnode: fixes a bug keeping apt repos from being added

10 years agotestnode: fixes a bug keeping apt repos from being added 57/head
Andrew Schoen [Tue, 23 Jun 2015 21:07:46 +0000 (16:07 -0500)]
testnode: fixes a bug keeping apt repos from being added

I needed to cast ansible_distribution_major_version to an int for the
comparsion to work.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #55 from ceph/wip-downstream-check-repos
Zack Cerza [Tue, 23 Jun 2015 20:24:58 +0000 (14:24 -0600)]
Merge pull request #55 from ceph/wip-downstream-check-repos

downstream-setup: ignore errors when disabling or enabling repos

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>