96 Commits
Author SHA1 Message Date
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>
3.7
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>
3.6
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 553b1f04f5 Update documentation
- Change format for README.md files from rst to githubs markdown
- Document role variables in a table inside README.md files
- Document each variable in defaults/main.yml files

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-11 15:23:33 -05:00
Alberto Murillo bb10d701b5 os-* ciao-*: Use service_fqdn for reference of a node.
There are some places (like certificates) where the
controller hostname should be used.

This was achieved with groups['ciao_controller'][0] which worked
when the host file was defined as:

[ciao_controller]
controller.example.com

But if the IP is defined in the host file instead of the fqdn,
the ip was getting used instead of its fqdn.

- Replace {{ groups['ciao_controller'][0] }}
  with {{ ciao_controller_fqdn }}

- Replace {{ groups['openstack_identity'][0] }}
  with {{ keystone_fqdn }}

- Replace {{ groups['openstack_object_storage_controller'][0] }}
  with {{ swift_fqdn }}

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-08 11:07:38 -05:00
Alberto Murillo 3a6e6acecc Add white spaces for better readability
- Ansible best practices recomends a generous use of whitespaces
  to improve readability.
- Variables are normally written as {{ varname }}
- Add spaces around jinja filters

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-08 11:07:29 -05:00
Alberto Murillo 43d8848ad6 Correct task names on install files
- Task names on install.yml files where updated:
   from: "Install <package-name> bundle"
   to:   "Install <bundle-name> bundle"

- Task names on install.yml files where updated:
   from: "Run swupd verify"
   to:   "Verify <bundle-name> has been installed"

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-07-07 17:30:00 -05:00
Cardona Ruiz, Erick 47b7870ec0 os-cinder: Support a list of devices for lvm setup
In order to setup cinder, now a list of devices must be provided. It allows
    to clear-config-management to handle the lvm setup.

Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
3.5
2016-06-30 11:09:06 -05:00
Alberto Murillo 478c523ded os-cinder: Fix cinder role
- cinder_fqdn default value was causing errors
- guess a default value for cinder_public_interface_name
- Fix typos on install_cinder.yml
- Run swup verify if the bundle is installed but the files are not

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-06-30 11:09:06 -05:00
Alberto Murillo 90047e58c3 os-cinder: add licence and readme file
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-06-30 11:09:06 -05:00
Alberto Murillo 35a8eca15a rabbitmq: Add rabbitmq role again
cinder needs rabbitmq to communicate between the
controller and storage nodes.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-06-30 11:09:06 -05:00
Alberto Murillo e203b67923 Makefile: copy all plugins from ceph-common
Makefile was installing config_template.py form ceph-common
the new version of ceph playbooks include more plugins which
will be included too with this change.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-06-29 17:26:39 -05:00
Alberto Murillo c4cc24b86e ceph: Update ceph roles
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-06-29 15:48:15 -05:00
Alberto Murillo 6e963a56e2 ciao: Install the latest ciao-cnci-agent into cnci image
The latest ciao cnci image (at the time of this commit) is based
on clearlinux 8260 which contains an old version of cnci agent.

This commit fetchs the latest ciao-cnci-agent binary and its
assosiated service file and injects them into the cnci image

- Update clearlinux image url to 8740
- Update ciao cnci image url to 8260
- Inject ciao-cnci-agent into cnci image
- Inject ciao-cnci-agent.service into cnci image

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
3.4
2016-06-14 18:34:00 -05:00
Alberto Murillo 490fde6e43 ciao: Make use of ciao configuration
Ciao configuration implements an API for ciao components
to fetch and store cluster configuration data from a
specific storage backend.

ciao-scheduler reads the configuration from the backend
and propagates it to other components through SSNTP

More detailed information can be found at:
https://github.com/01org/ciao/tree/master/configuration

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-06-14 16:41:02 -05:00
Alberto Murillo d037427cc9 Merge pull request #15 from obedmr/ciao/datastore
Add datastore paths in ciao-controller command
2016-05-30 15:02:34 -05:00
Munoz, Obed N 1454de7742 [ciao-controller] Add datastore paths in ciao-controller command
Signed-off-by: Munoz, Obed N <obed.n.munoz@intel.com>
2016-05-30 14:47:41 -05:00
Alberto Murillo 818ce5b7c5 ciao-controller: rename cloud-init user
- let cloud-init create a user named 'demouser' which
describes better the intent of the user and because
'ciao' is already taken by a system user

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
3.3
2016-05-19 11:12:18 -05:00
Alberto Murillo 49b0cd86b3 os-glance: use fqdn for endpoint url
- Use fqdn in the endpoint url no matter if you
defined an ip, hostname or fqdn in the hosts file.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-19 11:12:15 -05:00
Alberto Murillo 9ea5a8356e Merge pull request #13 from erick0z/swift_https_endpoint
os-swift: enable https endpoint
2016-05-18 16:53:51 -05:00
Cardona Ruiz, Erick a200b8191e os-swift: enable https endpoint
- Enforce SSL connections from openstack clients to swift proxy

Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
2016-05-18 16:46:26 -05:00
Alberto Murillo fd72dbb94c Merge pull request #12 from erick0z/fix_cinder_ssl_dir
os-cinder: Fix ssl certs path
2016-05-18 15:12:37 -05:00
Cardona Ruiz, Erick 1b37fc586c os-cinder: Fix ssl certs path
- Add /etc/keystone/ssl/server as a certificates path.

Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
2016-05-18 14:41:18 -05:00
Alberto Murillo ebd586307e examples ciao: add glance_fqdn var
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
3.2
2016-05-18 10:48:26 -05:00
Alberto Murillo 4730dfc4fd ciao-compute: update clearlinux image
- Use a newer release of clearlinux cloud image
with fixes for sudo.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
3.1
2016-05-17 15:58:12 -05:00
Alberto Murillo e07475a54b ciao-controller: Retrieve cacert from keystone node
- Keystone might be installed in a different machine
than the controller node.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-17 15:58:12 -05:00
Alberto Murillo baec03ac04 ciao: add handlers to restart services
- ciao-common: add handler to reload systemd config files
- ciao-controller: add handler to restart controller service
- ciao-controller: add handler to restart scheduler service
- ciao-compute: add handler to restart compute service
- ciao-network: add handler to restart network service

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-17 15:58:12 -05:00
Alberto Murillo 0f3d8fadd2 Merge pull request #11 from erick0z/cinder_https_endpoint
Cinder: https endpoint
2016-05-17 14:53:39 -05:00
Cardona Ruiz, Erick e9fb18574b os-cinder: https endpoint
- Add support of running cinder-api with ngingx and uwsgi in order to accept SSL
  - Enforce https endpoint for cinder and cinderv2 APIs

Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
2016-05-17 14:22:55 -05:00
Alberto Murillo 6db61996ef os-glance: use ca file
- Use CA certificate to communicate to keystone
instead of using the insecure option.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-17 11:51:30 -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 931e9d32bf os-glance: Enable SSL on glance api
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-16 18:00:35 -05:00
Alberto Murillo 367b6a4d33 os-common: Add restart nginx handler
- Removes restart nginx handler from os-keystone and adds it to
os-common so it can be used by other services.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-16 18:00:35 -05:00
Alberto Murillo 9f47db5854 os-keystone: move certificates to /etc/keystone
- Move api certificates from /etc/nginx/ssl to a per-application directory
like /etc/keystone/ssl

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-16 18:00:35 -05:00
Alberto Murillo b07889bb07 os-common: Fix keystone_fqdn var
- keystone_fqdn is used from different roles so it should default to
the ansible_fqdn variable for the first host under openstack_identity
section.

Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
2016-05-16 18:00:35 -05:00
Alberto Murillo 4858e58c5d Merge pull request #10 from leoswaldo/master
Add creation of systemd configuration files directory
2016-05-16 17:43:22 -05:00
Leoswaldo Macias f1e36de006 ciao-common: create systemd config dir
The creation of this directory will allow to create configuration files
for systemd units of ciao components.

Signed-off-by: Leoswaldo Macias <leoswaldo.macias@intel.com>
2016-05-16 17:19:46 -05:00
Alberto Murillo e58de40323 CIAO: Add playbooks
Signed-off-by: Alberto Murillo <alberto.murillo.silva@intel.com>
3.0
2016-05-12 14:16:10 -05:00
Alberto Murillo 9f72445be4 Merge pull request #9 from leoswaldo/feature_cinder_role
Cinder: Add role
2016-05-11 15:27:26 -05:00
erick0zcr 7c307650eb Cinder: Add role
Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
2016-05-11 09:37:24 -05:00
Alberto Murillo 1c1ed989be Merge pull request #8 from erick0z/feature_swift_sslauth
Add SSLAuth support to swift
2016-05-06 16:21:08 -05:00
Erick Cardona cc0be7a888 Swift: add SSL auth
Signed-off-by: Cardona Ruiz, Erick <erick.cardona.ruiz@intel.com>
2016-05-06 16:14:38 -05:00
Alberto Murillo 3bc887bffb Remove openstack components not used in CIAO from README 2016-05-03 17:47:39 -05:00
Alberto Murillo 6f45275537 Force ssl on keystone 2016-05-02 16:35:21 -05:00
Alberto Murillo 2ff18f59b4 Prune non CIAO components 2016-05-02 16:26:26 -05:00
Munoz, Obed N da31abd4d0 Add Swift to Supported components list
Signed-off-by: Munoz, Obed N <obed.n.munoz@intel.com>
2016-04-29 10:50:49 -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.
2.6
2016-04-28 16:34:37 -05:00