Commit Graph

14 Commits

Author SHA1 Message Date
Guilherme Steinmüller 56e16a7ba6 Retire openstack-ansible-os_monasca-agent
Change-Id: I3b6bb0ae9413ec54fd5444b45f68a480cbc2744b
2019-06-11 20:25:37 +00:00
Dmitriy Rabotjagov cd6016cf6f Drop private argument for include/import role
Since ansible 2.8 dropped private argument is not supported anymore:
https://github.com/ansible/ansible/issues/45038

Change-Id: Ie7c1b7e6435b61df6be36746d43b8e48803770ae
2019-05-17 12:05:33 +03:00
Zuul dbe31eeae9 Merge "use include_tasks instead of include" 2018-09-08 20:46:52 +00:00
ZhijunWei f31dba1612 use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]
[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Change-Id: I9a3d8a61fb8b7045f22b026b8e2efd8f5084afb4
2018-09-08 14:21:42 +00:00
Jesse Pretorius 31b4ae3d89 Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.
2. Simplifies the installation of optional pip packages.
   Right now it's more complicated than it needs to be due
   to us needing to keep the py_pkgs plugin working in the
   integrated build.
3. Deduplicates the distro package installs. Right now the
   role installs the distro packages twice - just before
   building the venv, and during the python_venv_build role
   execution.

Depends-On: https://review.openstack.org/598957
Change-Id: Ic00b23cb61ea7f0269d4e01b944d93accc3a218b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 12:01:07 +00:00
kaiokassiano a05457498f Cleanup unused pip packages
The virtualenv shouldn't be installed individually by a role,
therefore should be removed. The other packages are not really
necessary since they are remnant from the role creation (copied
and pasted from another role).

Thus we also remove the task related to the install of those.

Change-Id: I76b870ae54602a0c7f99774b250c447c748fb6aa
2018-08-10 11:56:20 -03:00
kaiokassiano c3c36bcadc Add support for openSUSE
This patch aims to ensure that this role is functional in opensuse-42x.

Change-Id: Icdf2787ba6de2f7d870973e1ce6bee16b8074575
2018-08-09 16:40:47 -03:00
zhulingjie 38dcda7880 Remove the unnecessary space
Change-Id: Id7c6452eccc1d0f3b4ecd6a05531790b30cecd66
2018-07-11 23:04:20 -04:00
Jean-Philippe Evrard 6930b5a2cc Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Id12b96c1973b3823f9b02e069522795a958fd319
2018-07-12 16:58:33 +02:00
Jesse Pretorius 89c616ff32 Replace virtualenv-tools with a script
virtualenv-tools has a bug which gets triggered in gates: it can't
change the shebang of a virtualenv python bin/ files if they
were generated with a virtualenv script whose shebang ends with
python2 instead of python.

Because we can't modify virtualenv-tools, we use shell scripts
instead.

Change-Id: Ic37abfb14303b93dfc80398d6e37706a68135cb0
Partial-Bug: #1741634
Partial-Bug: #1764470
2018-04-18 11:12:02 +01:00
Flávio Ramalho 2ca872d988 Added ceph plugin and other fixes
This change adds the configuration for the ceph plugin, a plugin
to monitor an ceph cluster.

Also, fixes:
  - host alive, http and process plugins
  - the agent configuration

Also, moved the dashboards to the grafana role, where they are
already being imported to grafana.

Change-Id: I70b10630c9181f293fc9dbe268029b251fad7823
2017-08-03 12:19:23 +02:00
Flávio Ramalho ecae6cc994 Monasca-Agent role refactoring[+docs]
This patch refactors the monasca-agent role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Plugins are automatically configured based on the openstack-ansible
    configuration;
  - Added tests;
  - Added documentation.

The extras directory contains changes necessary to openstack-
ansible to setup monasca-agent.

Change-Id: I3678af93ef460e5c32751e08201e68cef216787d
2017-06-12 10:41:44 -03:00
Ramon Melero a34df3e9b9 fixes and added host_alive check templating 2016-11-15 07:27:58 +00:00
Ramon Melero 5c318ea4d3 working agent 2016-11-14 03:03:59 +00:00