]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
ceph-cm-ansible.git
10 years agoStop apache2 and collectl after installing them.
Andrew Schoen [Fri, 17 Apr 2015 16:11:45 +0000 (11:11 -0500)]
Stop apache2 and collectl after installing them.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd apt_repos and packages for debian 7.
Andrew Schoen [Fri, 17 Apr 2015 16:11:20 +0000 (11:11 -0500)]
Add apt_repos and packages for debian 7.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoSetup debian specific things.
Andrew Schoen [Fri, 17 Apr 2015 15:42:37 +0000 (10:42 -0500)]
Setup debian specific things.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoReorganizing tasks that debian and ubuntu both need.
Andrew Schoen [Fri, 17 Apr 2015 15:33:26 +0000 (10:33 -0500)]
Reorganizing tasks that debian and ubuntu both need.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'git-mirror' into 'master'
Zack Cerza [Fri, 17 Apr 2015 15:32:19 +0000 (11:32 -0400)]
Merge branch 'git-mirror' into 'master'

Use the git_mirror_host var.

10 years agoMerge branch 'rhel-cleanup' into 'master'
Zack Cerza [Fri, 17 Apr 2015 15:31:47 +0000 (11:31 -0400)]
Merge branch 'rhel-cleanup' into 'master'

Minor cleanup of an unneeded task.

This won't be needed anymore once the ubuntu stuff gets merged.  It includes a commit that adds the 'always' tag to vars.yml ensuring that those will get ran every time --tags is used.

It should be fine to merge before the ubuntu port as well.

10 years agoUse the git_mirror_host var.
Andrew Schoen [Fri, 17 Apr 2015 14:36:39 +0000 (09:36 -0500)]
Use the git_mirror_host var.

Our git mirror host just changed and the value for it shouldn't
have been hardcoded anyway.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'ubuntu' into 'master'
Zack Cerza [Thu, 16 Apr 2015 21:34:06 +0000 (17:34 -0400)]
Merge branch 'ubuntu' into 'master'

Support for ubuntu trusty and precise.

I've tested this on both precise and trusty.  I'm reimaging another trusty node now to try another fresh provision, but I don't expect any trouble.

10 years agoCustomize sshd_config for ubuntu precise
Andrew Schoen [Tue, 14 Apr 2015 18:05:00 +0000 (13:05 -0500)]
Customize sshd_config for ubuntu precise

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoInstall python-pip on systems that use apt.
Andrew Schoen [Tue, 14 Apr 2015 16:00:54 +0000 (11:00 -0500)]
Install python-pip on systems that use apt.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agowith_items must be a single list, not a list of lists.
Andrew Schoen [Tue, 14 Apr 2015 16:00:13 +0000 (11:00 -0500)]
with_items must be a single list, not a list of lists.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd a stock sshd_config for ubuntu precise
Andrew Schoen [Tue, 14 Apr 2015 15:59:48 +0000 (10:59 -0500)]
Add a stock sshd_config for ubuntu precise

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd packages for precise; move common packages to vars/ubuntu.yml.
Andrew Schoen [Tue, 14 Apr 2015 15:44:53 +0000 (10:44 -0500)]
Add packages for precise; move common packages to vars/ubuntu.yml.

This allows precise and trusty to share a list of packages that are
common to both of them.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd a sources.list.precise template; use mirror_host var in sources.list.*
Andrew Schoen [Tue, 14 Apr 2015 15:20:57 +0000 (10:20 -0500)]
Add a sources.list.precise template; use mirror_host var in sources.list.*

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoEnsure the teuthology user is created and assigned to the sudo group.
Andrew Schoen [Tue, 14 Apr 2015 15:02:01 +0000 (10:02 -0500)]
Ensure the teuthology user is created and assigned to the sudo group.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpload lab-specific resolvconf base config files.
Andrew Schoen [Tue, 14 Apr 2015 14:29:50 +0000 (09:29 -0500)]
Upload lab-specific resolvconf base config files.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoSetup static IPs for baremetal machines running ubuntu.
Andrew Schoen [Tue, 14 Apr 2015 14:09:06 +0000 (09:09 -0500)]
Setup static IPs for baremetal machines running ubuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove nfs related tasks into nfs.yml.
Andrew Schoen [Mon, 13 Apr 2015 19:46:11 +0000 (14:46 -0500)]
Move nfs related tasks into nfs.yml.

I needed this for ubuntu as well as rhel 7.  So, put it in a place
where they can both use the same code.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove ssh pubkeys task into ssh.yml.
Andrew Schoen [Mon, 13 Apr 2015 19:32:18 +0000 (14:32 -0500)]
Move ssh pubkeys task into ssh.yml.

This just keeps everything ssh all together in one file.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd the always tag to vars.yml.
Andrew Schoen [Mon, 13 Apr 2015 19:26:52 +0000 (14:26 -0500)]
Add the always tag to vars.yml.

This makes it so vars.yml is always ran when using --tags.

You always want to load your vars, things break otherwise.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMade the ssh service name pkg mgr system dependent.
Andrew Schoen [Mon, 13 Apr 2015 19:25:13 +0000 (14:25 -0500)]
Made the ssh service name pkg mgr system dependent.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoCustomize sshd_config_ubuntu_14
Andrew Schoen [Mon, 13 Apr 2015 19:16:01 +0000 (14:16 -0500)]
Customize sshd_config_ubuntu_14

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd a stock ubuntu 14.04 sshd_config
Andrew Schoen [Mon, 13 Apr 2015 19:14:10 +0000 (14:14 -0500)]
Add a stock ubuntu 14.04 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove ssh configuration to main.yml.
Andrew Schoen [Mon, 13 Apr 2015 19:11:22 +0000 (14:11 -0500)]
Move ssh configuration to main.yml.

This needs to happen on all distros.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoEnabling auto-fsck fix to prevent boot hangup on ubuntu.
Andrew Schoen [Mon, 13 Apr 2015 19:08:17 +0000 (14:08 -0500)]
Enabling auto-fsck fix to prevent boot hangup on ubuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpload /etc/modules to enable kernel modules on boot for unbuntu.
Andrew Schoen [Mon, 13 Apr 2015 16:58:53 +0000 (11:58 -0500)]
Upload /etc/modules to enable kernel modules on boot for unbuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoConfigure nagios on ubuntu.
Andrew Schoen [Mon, 13 Apr 2015 16:37:57 +0000 (11:37 -0500)]
Configure nagios on ubuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpload tty conf files for ubuntu.
Andrew Schoen [Mon, 13 Apr 2015 16:15:33 +0000 (11:15 -0500)]
Upload tty conf files for ubuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoEnable kernel logging on ubuntu using a script.
Andrew Schoen [Mon, 13 Apr 2015 15:36:24 +0000 (10:36 -0500)]
Enable kernel logging on ubuntu using a script.

This was ported directly from chef as-is. We might want to
come back later and convert this from a script into something else.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd teuthology user to groups kvm and disk on ubuntu
Andrew Schoen [Mon, 13 Apr 2015 14:47:06 +0000 (09:47 -0500)]
Add teuthology user to groups kvm and disk on ubuntu

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove ntp below setup-ubuntu so that sources.list is present.
Andrew Schoen [Thu, 9 Apr 2015 19:34:55 +0000 (14:34 -0500)]
Move ntp below setup-ubuntu so that sources.list is present.

Our sources.list needs to be there before ntp will install correctly.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpload a fuse.conf template and add the teuthology_user to group fuse
Andrew Schoen [Tue, 7 Apr 2015 21:17:33 +0000 (16:17 -0500)]
Upload a fuse.conf template and add the teuthology_user to group fuse

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd user_xattr to root mount options in fstab and enable it on boot.
Andrew Schoen [Tue, 7 Apr 2015 20:28:08 +0000 (15:28 -0500)]
Add user_xattr to root mount options in fstab and enable it on boot.

I had quite a bit of confusion on what the original chef code was trying
to accomplish here.  There is quite possibly a better way to do this but for
the sake of this port I wanted to stay as close to chef as possible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpload /etc/grub.d/02_force_timeout for ubuntu testnodes.
Andrew Schoen [Tue, 7 Apr 2015 15:22:36 +0000 (10:22 -0500)]
Upload /etc/grub.d/02_force_timeout for ubuntu testnodes.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove plays related to cpan into it's own file so ubuntu can use it.
Andrew Schoen [Tue, 7 Apr 2015 15:12:49 +0000 (10:12 -0500)]
Move plays related to cpan into it's own file so ubuntu can use it.

Had to modify slightly for this to work on ubuntu as well as rhel 7.
Namely, making sure perl-doc is installed on ubuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpload weekly kernel-clean crontab for ubuntu.
Andrew Schoen [Tue, 7 Apr 2015 14:54:34 +0000 (09:54 -0500)]
Upload weekly kernel-clean crontab for ubuntu.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoApt repos and package installs for ubuntu 14.04
Andrew Schoen [Mon, 6 Apr 2015 20:46:21 +0000 (15:46 -0500)]
Apt repos and package installs for ubuntu 14.04

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'ansible-user-playbook' into 'master'
Zack Cerza [Thu, 16 Apr 2015 15:17:07 +0000 (11:17 -0400)]
Merge branch 'ansible-user-playbook' into 'master'

A new ansible-managed.yml playbook.

This creates the new ansible user on nodes that haven't been reimaged with our new cobbler stuff yet.  I've tested this on trusty and rhel 7.

10 years agoA new playbook for setting up the ansible user and sudo settings.
Andrew Schoen [Thu, 16 Apr 2015 15:05:24 +0000 (10:05 -0500)]
A new playbook for setting up the ansible user and sudo settings.

We can use this new playbook to create the ansible user on nodes that
haven't been reimaged with our new cobbler kickstarts yet.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'ansible-user' into 'master'
Zack Cerza [Tue, 14 Apr 2015 21:48:20 +0000 (17:48 -0400)]
Merge branch 'ansible-user' into 'master'

Have debian-installer use ansible_user as well.

10 years agoHave debian-installer use ansible_user as well.
Andrew Schoen [Tue, 14 Apr 2015 21:50:30 +0000 (16:50 -0500)]
Have debian-installer use ansible_user as well.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'ansible-user' into 'master'
Zack Cerza [Tue, 14 Apr 2015 21:34:02 +0000 (17:34 -0400)]
Merge branch 'ansible-user' into 'master'

Have cobbler create a cm user for ansible to use

In the PR with the ubuntu port, I create the teuthology_user for every distro so we have that covered.  I'm thinking I could probably write a simple playbook to create this cm user for any existing nodes that haven't be reimaged with the new kickstarts.  That'd be nice so we could start fixing ssh keys with ansible and change the default ansible_user in ansible.cfg.

10 years agoHave cobbler create a user for ansible.
Andrew Schoen [Fri, 10 Apr 2015 14:50:22 +0000 (09:50 -0500)]
Have cobbler create a user for ansible.

Currently everything is using the teuthology_user.  I think it'd be
smart to have ansible use a separate user than teuthology. This way if
something happens to the teuthology user then ansible can just recreate
it.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRemoved check for the packages var in yum/packages.yml
Andrew Schoen [Tue, 14 Apr 2015 21:00:17 +0000 (16:00 -0500)]
Removed check for the packages var in yum/packages.yml

I originally added this to remind me to include the 'vars' tag when
using --tags. However, this isn't necessary once we put the 'always'
tag on vars.yml which makes it run everytime --tags is used.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'cobbler-trusty' into 'master'
Zack Cerza [Fri, 10 Apr 2015 21:38:22 +0000 (17:38 -0400)]
Merge branch 'cobbler-trusty' into 'master'

Creates a new cobbler role

All this does is upload our custom kickstarts, snippets and scripts.

10 years agoUse the $default_crypted_passsword for the cobbler user
Andrew Schoen [Fri, 10 Apr 2015 20:58:10 +0000 (15:58 -0500)]
Use the $default_crypted_passsword for the cobbler user

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRemove the ssh_keys var from the cobbler role.
Andrew Schoen [Fri, 10 Apr 2015 15:59:51 +0000 (10:59 -0500)]
Remove the ssh_keys var from the cobbler role.

This now lives in the secrets repo.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUse the mirror_host var in cephlab_trusty.preseed
Andrew Schoen [Fri, 10 Apr 2015 14:57:44 +0000 (09:57 -0500)]
Use the mirror_host var in cephlab_trusty.preseed

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoStore ssh keys that get added to cephlab_user in a list.
Andrew Schoen [Fri, 10 Apr 2015 14:07:51 +0000 (09:07 -0500)]
Store ssh keys that get added to cephlab_user in a list.

This also adds my key to the list.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove kickstarts, scripts and snippets lists to defaults as vars.
Andrew Schoen [Fri, 10 Apr 2015 13:58:19 +0000 (08:58 -0500)]
Move kickstarts, scripts and snippets lists to defaults as vars.

This also moves all template related stuff into upload_templates.yml

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds a new cobbler role.
Andrew Schoen [Thu, 9 Apr 2015 21:43:45 +0000 (16:43 -0500)]
Adds a new cobbler role.

All this does currently is upload some of the custom templates we've
built. We should come back later and create the profiles and install
cobbler, etc.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'mirror-var' into 'master'
Ken Dreyer [Thu, 9 Apr 2015 21:27:52 +0000 (17:27 -0400)]
Merge branch 'mirror-var' into 'master'

Make our mirror host a variable

We shouldn't hardcode our mirror host, because it'll be different per lab.  Also, apt-mirror.front does not work in the octo lab currently.

10 years agoUse the var mirror_host instead of a hardcoded value in rpm repos.
Andrew Schoen [Thu, 9 Apr 2015 19:54:26 +0000 (14:54 -0500)]
Use the var mirror_host instead of a hardcoded value in rpm repos.

The var will be added to the appropriate secrets repo.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'remove-obsolete-repos' into 'master'
Zack Cerza [Wed, 8 Apr 2015 15:57:54 +0000 (11:57 -0400)]
Merge branch 'remove-obsolete-repos' into 'master'

Make rhsm_repos major version specific and delete obsoleted repos.

This should delete all the repos that have been obsoleted by rhel entitlements.  @kdreyer please double-check that I've removed the right ones or if there are others that we should remove.

Also, trying to activate rhel 7 repos on a rhel 6 node fails.  I've made rhsm_repos major version specific and added the rhel 6 repos we want to enable to fix that.

10 years agoRemove rhel 6 repos now obsoleted by subscription-manager entitlements.
Andrew Schoen [Wed, 8 Apr 2015 15:10:19 +0000 (10:10 -0500)]
Remove rhel 6 repos now obsoleted by subscription-manager entitlements.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMake rhsm_repos var rhel major version specific.
Andrew Schoen [Wed, 8 Apr 2015 15:08:38 +0000 (10:08 -0500)]
Make rhsm_repos var rhel major version specific.

Trying to register rhel 6.5 with the rhel 7 specific repos caused the
play to fail.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRemove obsoleted repos for rhel 7
Andrew Schoen [Wed, 8 Apr 2015 14:45:45 +0000 (09:45 -0500)]
Remove obsoleted repos for rhel 7

These are now obsolete because we're registering with
subscription-manager and will use the repos provided there.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'keys' into 'master'
Andrew Schoen [Tue, 7 Apr 2015 21:56:41 +0000 (17:56 -0400)]
Merge branch 'keys' into 'master'

Add SSH keys to testnodes

This doesn't attempt to do any fancy lab-differentiation at this stage. I don't think that's an emergency, though.

10 years agoAdd task for SSH pubkeys
Zack Cerza [Tue, 31 Mar 2015 21:05:28 +0000 (15:05 -0600)]
Add task for SSH pubkeys

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge branch 'wip-entitlements-enable-repos' into 'master'
Andrew Schoen [Tue, 7 Apr 2015 17:12:41 +0000 (13:12 -0400)]
Merge branch 'wip-entitlements-enable-repos' into 'master'

enable RHEL repositories from CDN

Note that the testnode role is creating the following .repo files (that point to apt-mirror). With the Red Hat CDN, these are now redundant:

* `rhel7-extras.repo`
* `rhel7-optional.repo`
* `rhel7.repo`

These are harmless since they simply contain older versions of packages and yum will prefer the CDN repositories since the packages there are newer. Eventually we should figure out a way to remove these, though.

10 years agoenable RHEL repositories from CDN
Ken Dreyer [Thu, 2 Apr 2015 18:54:00 +0000 (12:54 -0600)]
enable RHEL repositories from CDN

Note that the testnode role is creating the following .repo files
(that point to apt-mirror). With the Red Hat CDN, these are now
redundant:

  - rhel7-extras.repo
  - rhel7-optional.repo
  - rhel7.repo

These are harmless since they simply contain older versions of packages.
Yum will prefer the CDN repositories, since the packages there are
newer. Eventually we should figure out a way to remove these, though.

10 years agoMerge branch 'fedora' into 'master'
Zack Cerza [Thu, 2 Apr 2015 16:00:20 +0000 (12:00 -0400)]
Merge branch 'fedora' into 'master'

Support for Fedora 20

Chef only had minor support for fedora 18 & 19 - which was only changing the version of mod_fastcgi that was installed.  I discussed with Ken in irc and we thought it'd be ok to only port for fedora 20 at this point. We could try this playbook out on fedora 21, but I don't believe we build packages for that version anyway.

10 years agoSupport for Fedora 20
Andrew Schoen [Wed, 1 Apr 2015 22:17:20 +0000 (17:17 -0500)]
Support for Fedora 20

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoCustomized the fedora 20 sshd_config
Andrew Schoen [Wed, 1 Apr 2015 20:43:48 +0000 (15:43 -0500)]
Customized the fedora 20 sshd_config

This adds MaxSessions and {{ ansible_managed }}, but also removes
all the commented out / disabled options.  We're only doing this for readability.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds a stock fedora 20 sshd_config
Andrew Schoen [Wed, 1 Apr 2015 20:41:29 +0000 (15:41 -0500)]
Adds a stock fedora 20 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds ability to remove and upgrade packages with yum
Andrew Schoen [Wed, 1 Apr 2015 20:12:27 +0000 (15:12 -0500)]
Adds ability to remove and upgrade packages with yum

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds vars file for fedora 20
Andrew Schoen [Wed, 1 Apr 2015 20:12:16 +0000 (15:12 -0500)]
Adds vars file for fedora 20

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMoves all the include_vars tasks into vars.yml
Andrew Schoen [Wed, 1 Apr 2015 19:34:10 +0000 (14:34 -0500)]
Moves all the include_vars tasks into vars.yml

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'abstract-subscription-manager' into 'master'
Andrew Schoen [Thu, 2 Apr 2015 14:29:57 +0000 (10:29 -0400)]
Merge branch 'abstract-subscription-manager' into 'master'

move Red Hat entitlements into "common" role

Prior to this commit, entitling a system with Red Hat was a part of the testnode role.

Move the Red Hat entitlement tasks into a new "common" role so that it can apply to other systems besides testnodes.

This will allow us to register other systems to consume updates from Red Hat's CDN.

Also, switch the "when" clause to evalute "`ansible_distribution`" instead of "`ansible_os_family`". Prior to this change, Ansible would include `setup-redhat.yml` on RHEL, Fedora and CentOS. The `ansible_os_family` fact was overly-broad there, because we do not want to run `subscription-manager` on Fedora and CentOS.

10 years agomove Red Hat entitlements into "common" role
Ken Dreyer [Tue, 31 Mar 2015 00:04:35 +0000 (18:04 -0600)]
move Red Hat entitlements into "common" role

Prior to this commit, entitling a system with Red Hat was a part of the
testnode role.

Move the Red Hat entitlement tasks into a new "common" role so that it
can apply to other systems besides testnodes.

This will allow us to register other systems to consume updates from Red
Hat's CDN.

Also, switch the "when" clause to evalute "ansible_distribution" instead
of "ansible_os_family". Prior to this change, Ansible would include
setup-redhat.yml on RHEL, Fedora and CentOS. The ansible_os_family fact
was overly-broad there, because we do not want to run
subscription-manager on Fedora and CentOS.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge branch 'doc-dev-environment' into 'master'
Andrew Schoen [Wed, 1 Apr 2015 18:21:50 +0000 (14:21 -0400)]
Merge branch 'doc-dev-environment' into 'master'

README: add "local dev environment" instructions

Describe the steps for installing and configuring Ansible on a local development box.

10 years agoREADME: add "local dev environment" instructions
Ken Dreyer [Wed, 1 Apr 2015 15:43:41 +0000 (09:43 -0600)]
README: add "local dev environment" instructions

Describe the steps for installing and configuring Ansible on a local
development box.

10 years agoMerge branch 'centos' into 'master'
Zack Cerza [Wed, 1 Apr 2015 17:29:30 +0000 (13:29 -0400)]
Merge branch 'centos' into 'master'

Support for centos 6 and 7

I've retested this on rhel 6.5, rhel 7.0, centos 6.5 and centos 7.0.

Centos was able to share a majority of the config with rhel, so I moved what was common into a yum_systems.yml file.  I also made a switch to only storing sshd_configs for each distro's major version - it was getting difficult to maintain a sshd_config for each minor version of a distro.  Plus, I noticed rhel 6.4 and rhel 6.5 had the same sshd_config anyway.

There are also quite a few file renames from rhel_* to redhat_* so that I can dynamically import based on ansible_distribution. These files are otherwise unchanged.

10 years agoUpdates to make centos 7.0 provision correctly.
Andrew Schoen [Wed, 1 Apr 2015 14:52:10 +0000 (09:52 -0500)]
Updates to make centos 7.0 provision correctly.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoCustomized the centos 7 sshd_config
Andrew Schoen [Wed, 1 Apr 2015 14:14:32 +0000 (09:14 -0500)]
Customized the centos 7 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds a stock centos 7 sshd_config
Andrew Schoen [Wed, 1 Apr 2015 14:11:22 +0000 (09:11 -0500)]
Adds a stock centos 7 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoTouch /etc/fuse.conf so it's created if not present; tag sudoers play
Andrew Schoen [Tue, 31 Mar 2015 21:36:05 +0000 (16:36 -0500)]
Touch /etc/fuse.conf so it's created if not present; tag sudoers play

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoFix path issues for a couple templates
Andrew Schoen [Tue, 31 Mar 2015 21:35:36 +0000 (16:35 -0500)]
Fix path issues for a couple templates

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoForce symlink creation of /usr/bin/lspci
Andrew Schoen [Tue, 31 Mar 2015 21:32:33 +0000 (16:32 -0500)]
Force symlink creation of /usr/bin/lspci

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoSet package lists for centos 6 and 7
Andrew Schoen [Tue, 31 Mar 2015 19:59:45 +0000 (14:59 -0500)]
Set package lists for centos 6 and 7

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd sshd_config for centos 6; make sshd_config major version specific.
Andrew Schoen [Tue, 31 Mar 2015 16:48:24 +0000 (11:48 -0500)]
Add sshd_config for centos 6; make sshd_config major version specific.

We used to store sshd_configs for each minor version of a distro, which
was not necessary.  This changes those to major version specific
sshd_configs per distro.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdded a stock centos 6.5 sshd_config
Andrew Schoen [Tue, 31 Mar 2015 16:43:50 +0000 (11:43 -0500)]
Added a stock centos 6.5 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoReorganize things common to all yum systems into it's own task.
Andrew Schoen [Tue, 31 Mar 2015 16:15:38 +0000 (11:15 -0500)]
Reorganize things common to all yum systems into it's own task.

This also includes incomplete centos support.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'rename-common' into 'master'
Zack Cerza [Mon, 30 Mar 2015 20:38:39 +0000 (16:38 -0400)]
Merge branch 'rename-common' into 'master'

Rename the common role to testnode

The "common" role was always specific to our testing nodes, now it's name reflects that.

Not other changes here besides the "mv roles/common roles/testnode".

10 years agoRename the common role to testnode
Andrew Schoen [Mon, 30 Mar 2015 20:17:27 +0000 (15:17 -0500)]
Rename the common role to testnode

The common role was always wrongly named.  Some of the plays in the
testnode role might very well be common with other machines not used for
testing, but we're not sure exactly what those things are just yet.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'secrets-split' into 'master'
Zack Cerza [Mon, 30 Mar 2015 15:59:11 +0000 (11:59 -0400)]
Merge branch 'secrets-split' into 'master'

Move our hosts and secrets out of this repo

This also includes a new secrets role which provides a secrets_path var so that we can access and use secrets located elsewhere.

10 years agoRemove secrets from this repo and create a secrets role
Andrew Schoen [Thu, 26 Mar 2015 21:22:34 +0000 (14:22 -0700)]
Remove secrets from this repo and create a secrets role

The secrets role provides a var 'secrets_path' we can use to access
secrets stored outside of this repo.  We will store the inventory and
secrets in lab specific repos.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'rhel6' into 'master'
Zack Cerza [Thu, 26 Mar 2015 20:32:44 +0000 (16:32 -0400)]
Merge branch 'rhel6' into 'master'

Support for rhel 6.5 and 6.4

10 years agoAdd our custom sshd_config for rhel 6.4
Andrew Schoen [Tue, 24 Mar 2015 21:26:24 +0000 (14:26 -0700)]
Add our custom sshd_config for rhel 6.4

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdded a stock rhel 6.4 sshd_config
Andrew Schoen [Tue, 24 Mar 2015 21:06:54 +0000 (14:06 -0700)]
Added a stock rhel 6.4 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUpdates to rhel 6.5 provisioning.
Andrew Schoen [Tue, 24 Mar 2015 16:37:20 +0000 (09:37 -0700)]
Updates to rhel 6.5 provisioning.

This is a collection of things I had to change while testing out this
playbook against a rhel 6.5 machine.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoCustomized sshd_config for rhel 6.5
Andrew Schoen [Tue, 24 Mar 2015 16:33:20 +0000 (09:33 -0700)]
Customized sshd_config for rhel 6.5

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdding a stock rhel 6.5 sshd_config
Andrew Schoen [Mon, 23 Mar 2015 22:13:31 +0000 (15:13 -0700)]
Adding a stock rhel 6.5 sshd_config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRhel 6.x support ported from chef
Andrew Schoen [Mon, 23 Mar 2015 20:23:01 +0000 (13:23 -0700)]
Rhel 6.x support ported from chef

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMade the teuthology user a var
Andrew Schoen [Fri, 20 Mar 2015 14:52:02 +0000 (09:52 -0500)]
Made the teuthology user a var

This will allow us to more easily change the user teuthology uses to run
tests against these nodes in the future.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUse a prefix for yum repo names to indicate how it was created.
Andrew Schoen [Thu, 19 Mar 2015 21:11:35 +0000 (16:11 -0500)]
Use a prefix for yum repo names to indicate how it was created.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoInstall packages for rhel 7 in the common role
Andrew Schoen [Mon, 16 Mar 2015 14:26:31 +0000 (09:26 -0500)]
Install packages for rhel 7 in the common role

This also added some tags so that we can filter the tasks
that get ran when executing the playbook.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoCreate local repo files for rhel 7.0 and 7.1
Andrew Schoen [Sun, 15 Mar 2015 22:12:30 +0000 (17:12 -0500)]
Create local repo files for rhel 7.0 and 7.1

This also introduces version specific var files for rhel

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge branch 'rhel7' into 'master'
Zack Cerza [Tue, 24 Mar 2015 16:55:52 +0000 (12:55 -0400)]
Merge branch 'rhel7' into 'master'

Support for rhel 7 provisioning for lab test nodes

I might end up tweaking this a bit more, but I didn't want to wait to any longer to create this PR.

If you've got any questions about how to run this, let me know.  This is the command I've been using though.

ansible-playbook -i octo testnodes.yml -vv --limit magna085*

You can use --limit there to target any specific node or set of nodes (look at the octo file for available nodes).  If you want to make sure what nodes or tasks will run for that playbook --list-tasks and --list-hosts are really helpful.  I believe you can also just say -i fqdn

You'll need to get the key to unlock the subscription_manager secrets. You can find that at magna002:/etc/ansible/.vault_pass.txt.  Move that file to ~/.vault_pass.txt wherever you plan to run ansible from.

Note: I'm unsure how well rhel 7.1 will actually work, so I changed the title.

10 years agoMove install of python-pip to pip.yml
Andrew Schoen [Sat, 21 Mar 2015 21:17:08 +0000 (16:17 -0500)]
Move install of python-pip to pip.yml

This makes the pip.conf and .pip directory tasks idempotent.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>