Commit Graph

41 Commits

Author SHA1 Message Date
Alberto Murillo Silva fab229c464 ciao-controller: Fix cnci image creation logic
Delete any of cnci_image.img.xz, cnci_image.img or .cnci_ready files
to let ansible rebuild the cnci image.

If the tree files mentioned above already exists. Skip the
image creation phase.

Signed-off-by: Alberto Murillo Silva <alberto.murillo.silva@intel.com>
2016-10-20 14:52:37 -05:00
Alberto Murillo 6cdc849f01 ciao: Document fedora requirements (#96)
When the managed nodes are fedora, they require the following
packages to be present:

- python-dnf
- netaddr
- libselinux-python

Fixes #50

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-10-19 16:38:49 -05:00
Alberto Murillo 8ffc49b506 ciao: Update cleanup to remove keystone and ciao-webui unit files
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-10-19 10:06:37 -05:00
Alberto Murillo 6bb9950fae ciao cleanup: Update the bundles to remove (#91)
Several bundles got deprecated in clearlinux.

This patch updates cleanup/ciao.yml to remove the bundles
that are actually installed by ciao.

Fixes #74

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-10-14 17:05:58 -05:00
Erick CARDONA c5b444a690 ciao-compute, ciao-network: remove the strategy free feature (#73)
The strategy free was causing some weird behaviour when running parallel tasks.
Returning to the default execution strategy fix this.

Closes https://github.com/clearlinux/clear-config-management/issues/72

Signed-off-by: Erick Cardona <erick.cardona.ruiz@intel.com>
2016-10-07 10:57:35 -05:00
Marcos Simental c9dba10716 ciao-controller: remove nbd usage, using loops instead. (#76)
the `qemu-nbd` tool it's used to manipulate the cnci image, which
is already a raw image (not qcow as thought), so we can use
raw image manipulation, removing all the need of nbd manipulation
tools.

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2016-10-07 10:17:53 -05:00
Alberto Murillo 48eabe3b52 ciao: Change default value for gopath (#68)
Using $GOPATH as the value for gopath is not
so easily achievable because the GOPATH value
for the deployment machine does not get copied
automatically to other nodes.

Also setting a fact on one node does not set it
on other nodes.

The easiest way to share this value across the
different ciao roles is to set it as a variable
that can be overriden in groups_vars/all file or
via the cmdline with --extra-vars "gopath=$GOPATH"

Fixes: #57

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-10-03 17:57:30 -05:00
Alberto Murillo baaffe8387 ciao: Add a note on docker hostname resolution (#56)
docker containers uses /etc/resolv.conf file from the
host machine filtering any localhost reference in it.

If after the filter there are no nameservers entries then
the daemon adds google public dns servers (8.8.8.8 and 8.8.4.4)

This Changes adds a note to remind the administrator to setup a
dns server that the containers can use to resolv the ciao cluster
nodes names.

Fixes #39

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-09-29 11:44:58 -05:00
Alberto Murillo e92592adce ciao: create admin-openrc and demo-openrc (#60)
The playbooks were creating a ciaorc to authenticate the cli
with the ciao user.

The ciao user is reserved for ciao services authenticating into keystone
and should not be used in the cli to create instances.

This changes creates admin-openrc with credentials for the admin user
and demo-openrc with credentials for the demo user to be used by ciao-cli.

Fixes #46

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-09-27 11:19:51 -05:00
Jesus Ornelas Aguayo 988a02a9e4 ciao: enable scp_if_ssh in ansible.cfg
When deploying from an ubuntu or fedora machine to a
ClearLinux node, ansible tries to use sftp which is
disabled in ClearLinux by default.

Enabling scp_if_ssh in ansible.cfg makes anisble use
ssh to copy files to the nodes.

Fixes #54

Signed-off-by: Jesus Ornelas Aguayo <jesus.ornelas.aguayo@intel.com>
2016-09-26 10:21:03 -05:00
Alberto Murillo 4e07e12e34 ciao/README.md: Update instructions (#48)
- Specify ansible requirements for managed nodes and control machine
- Specify passwordless sudo is required in deployment machine and managed nodes
- Specify which commands have to be run as sudo

Fixes #37

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-09-23 10:52:54 -05:00
Alberto Murillo 04bfb3264f examples/ciao: Update documentation (#36)
examples/ciao: Update documentation
2016-09-07 09:46:59 -05:00
Alberto Murillo f870a3ef20 Update ciao deployment
- Deployment of ciao has changed from installing everyghin in packages
to install keystone and ciao-webui from containers.

- ciao-laucher will detect the operating system and install the required
dependencies

- Support for Ubuntu 16.04 and Fedora 24 has been added.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-09-02 11:17:47 -05:00
Alberto Murillo 80494ca417 docker: Add docker role
This role installs docker 1.12 in ubuntu, fedora and clearlinux

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-09-02 10:02:51 -05:00
Alberto Murillo 7fa70e9102 examples: ciao: add ansible.cfg
ansible.cfg enables pipelining for an extra boost in speed

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-16 09:43:12 -05:00
Alberto Murillo d5f15caad2 ceph: sync ceph roles
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-16 08:57:59 -05:00
Alberto Murillo b7ea92a979 examples: add profile_tasks to ansible.cfg
profile_tasks prints how much time takes each task to run

The feature is disabled by default but can be enabled by
uncommenting the corresponding line in ansible.cfg

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-15 16:24:53 -05:00
Alberto Murillo 0c6edeaa28 examples: ciao: cleanup: Remove bundles in clearlinux
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-12 18:05:23 -05:00
Alberto Murillo 9ef93eff40 ceph: examples: Add cephfs
Ceph FileSystem requires a metadata server.
This functionallity is already provided.

This commit updates the example to install a metadata server.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-11 17:31:27 -05:00
Alberto Murillo b4b875b544 ciao: examples: Speed things up
- Add an ansible.cfg file to enable pipelining.

  Pipelining increases the performance by executing many ansible
  modules without actual file transfer.

- Prerun ciao-common

  ciao-common role install ciao code and dependencies. By running
  this role on all nodes in parallel we can save some time.

- Set strategy: free

  By default all hosts will run each task before any host starts the next task
  Using the 'free' strategy allows each host to run until the end of the play
   as fast as it can.:

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-11 15:04:14 -05:00
Alberto Murillo 73938b5f6e examples: ciao: Create a demo user and project
A demo user and a demo project is included in the example
for testing purposes of a ciao cluster.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-04 13:05:11 -05:00
Alberto Murillo 38dd039c70 examples: ciao: Include ciao_dev var in examples
If ciao_dev is set to false (default) it will try to install
ciao from the operating system packages which is only supported
in Clear Linux.

In order to install ciao in Ubuntu, ciao_dev must be set to
true to build ciao from github master branch.

This commit adds the variable to the examples to have it handy
for users who wants to deploy ciao in Ubuntu.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-04 12:15:14 -05:00
Alberto Murillo 9f75090e61 examples: ciao: Do not fail if optional variables are missing
- ciao_dev might not be defined and should be treated as false by default
- mysql_packages is defined for ubuntu and should not cause a failure
  in clearlinux when not defined.

Fixes #30

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-04 10:40:30 -05:00
Alberto Murillo 61d93fe24b examples: ciao: Cleanup now supports Ubuntu 16.04 (Xenial)
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-08-02 17:56:21 -05:00
Alberto Murillo c1d699995e ciao: Install ciao from github sources (#25)
* ciao: Install ciao from github sources

- Add a new variable ciao_dev to ciao-common
  When set to True, it will build ciao from the master branch
  and put the binaries in /usr/local/bin

  When set to False (default) it will install ciao from the OS
  packages

Fixes #21

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>

* ciao: Add ciao_cleanup.yml playbook (#28)

- This playbook cleanups a ciao cluster

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-15 14:43:07 -05:00
Marcos Simental e058472f53 examples/ciao: remove duplicated ciao_network host (#27)
the [ciao_network] group in `examples/ciao/hosts` is
duplicated. This commits removes duplication of such group.

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2016-07-13 17:39:08 -05:00
Marcos Simental 265b1d459e examples/ciao: use consistent FQDN for the group_vars/all file (#26)
There were usage of different FQDNs for some variables.
this commit use a single FQDN for better understanding of the setup.

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2016-07-13 17:04:18 -05:00
Alberto Murillo bcb1c121dd examples: ciao: Provide a reference for variables
Users might not know what is the function of a variable in the
example playbook.

This change adds a reference for a role documentation where the
user can find more information about the variables below.

Fixes #18

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-11 16:15:36 -05:00
Alberto Murillo c94440c70a ciao-controller: Create compute service and endpoint for OpenStack
Rally needs a compute endpoint in order to run.

- Create ciao admin user in openstack by default
- Create ciao compute service in openstack by default
- Create ciao compute endpoint in openstack by default
- Remove optional variables in example playbook to create
  the items above.

Fixes #14

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-11 16:10:20 -05:00
Alberto Murillo d8f75164e2 examples: Update ciao examples
- Update ciao example playbook with newer variables
- Remove glance from the example since it is not yet
  supported by ciao.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-11 15:23:37 -05:00
Alberto Murillo ebd586307e examples ciao: add glance_fqdn var
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-18 10:48:26 -05:00
Alberto Murillo a16ec4d2dc ciao: Fix example vars file
- Add was missing glance variables
- Add quotes to ciao_mgmt_subnet variable

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-16 18:05:25 -05:00
Alberto Murillo e58de40323 CIAO: Add playbooks
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-12 14:16:10 -05:00
Alberto Murillo 2ff18f59b4 Prune non CIAO components 2016-05-02 16:26:26 -05:00
Alberto Murillo 88dc7a6777 Use keystone_fqdn for all endpoints.
There is the case when you specify the ip address or even 'localhost'
in the hosts file but the endpoints should always point to the fqdn.
2016-04-28 16:34:37 -05:00
Cardona Ruiz, Erick f076a2f2fc Add swift role
Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
2016-04-27 10:36:44 -05:00
Alberto Murillo 5d42d9d609 Add keystone ssl variables into sample variables file. 2016-04-22 11:13:17 -05:00
Alberto Murillo a61ef02636 Add public_interface var
- Remove nova_public_interface_name and neutron_public_interface_name
since both are referring to the same thing, the interface where services
will run on that node.

- Add public_interface var with default value of the interface name
with a configured default gateway (ansible_default_ipv4.alias)

- Remove common_interface_detect.yml since it was testing for groups
names that might not be defined when deploying only keystone without
nova and neutron
2016-04-22 10:46:48 -05:00
Alberto Murillo bac4ec2313 Remove keystone's admin_token references. 2016-04-13 14:55:53 -05:00
Alberto Murillo 1f2f3edc77 Include ceph example 2016-04-07 15:57:00 -05:00
Leoswaldo Macias eeac16c602 Initial commit
Signed-off-by: Leoswaldo Macias <leoswaldo.macias@intel.com>
2016-03-29 16:41:05 -06:00