1037 Commits

Author SHA1 Message Date
Juan Antonio Osorio Robles
fe6bba0e81 Add spec tests for tripleo::certmonger::ca::local class
Change-Id: I81e0850777f1498ba9b7a213ba02819847a40786
2017-03-16 11:13:36 +02:00
Jenkins
0136098cc2 Merge "HAProxy: Refactor certificate retrieval bits" 2017-03-15 13:54:46 +00:00
Jenkins
43fa49ebf8 Merge "Correct haproxy's stat unix socket path" 2017-03-14 12:23:02 +00:00
Tim Rozet
c9acf8a687 Fixes issues with raising mysql file limit
Changes Include:
 - Adds spec testing
 - Only raise limits if nonha.  puppet-systemd will restart the mariadb
   service which breaks ha deployments.  Hence we only want to do this
   in noha.
 - Minor fix to hiera value refrenced not as parameter to mysql.pp

Partial-Bug: #1648181
Related-Bug: #1524809

Co-Authored By: Feng Pan <fpan@redhat.com>

Change-Id: Id063bf4b4ac229181b01f40965811cb8ac4230d5
Signed-off-by: Tim Rozet <trozet@redhat.com>
Signed-off-by: Feng Pan <fpan@redhat.com>
2017-03-13 23:01:20 +00:00
Michele Baldessari
5f8607711b Correct haproxy's stat unix socket path
We currently set the haproxy stat socket to /var/run/haproxy.sock.
On Centos/RHEL with selinux enabled this will break:

avc: denied { link } for pid=284010 comm="haproxy"
name="haproxy.sock" dev="tmpfs" ino=330803
scontext=system_u:system_r:haproxy_t:s0
tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file

The blessed/correctly-labeled path is /var/lib/haproxy/stats

Note: I am setting only Partial-Bug because I would still like
to make this a parameter so other distros may just override the path.
But that change is more apt for pike and not for ocata.

Change-Id: I62aab6fb188a9103f1586edac1c2aa7949fdb08c
Patial-Bug: #1671119
2017-03-13 22:20:05 +00:00
Paul Belanger
cc3d236ce4 Add bindep support
Bindep is an automation tool used by openstack-infra to bootstrap a
worker with default packages. Something not needed for puppet jobs.

Change-Id: I6b4784c233a2abad01da3408f131af2c89586868
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-13 12:00:34 -04:00
Juan Antonio Osorio Robles
bee651abcb HAProxy: Refactor certificate retrieval bits
This moves the certificate request bits to simplify the profile and move
the logic to the HAProxy/certmonger specific manifest.

This is a small iteration on the effort to separate the certificate
retrieval to its own manifest since this part won't be containerized
yet.

Change-Id: Ibb01cd9a59049e4728615cb4f37e5bfac5800a92
2017-03-13 15:15:33 +02:00
Jenkins
8a6e4c7b99 Merge "Add support for BGPVPN service plugin" 2017-03-11 19:07:14 +00:00
Ricardo Noriega
83e7494bd2 Add support for BGPVPN service plugin
Introduce profile to configure networking-bgpvpn service

Implements: blueprint bgpvpn-service-integration

Change-Id: I7c1686693a29cc1985f009bd7a3c268c0e211876
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
2017-03-11 19:08:22 +01:00
Jenkins
9aa3841a3c Merge "httpd: Clean up heat API profiles and add release note" 2017-03-11 02:58:19 +00:00
Jenkins
64b419f4a4 Merge "Deploy Heat APIs over httpd" 2017-03-10 20:42:56 +00:00
Juan Antonio Osorio Robles
d73c2630b5 panko: Do db_sync in api manifest
The db_sync from panko comes from the panko-api package; So we move the
db_sync to be done in the api manifest as it's done for other services
such as barbican.

This is necessary since in cases where the overcloud deploy requires
puppet to do the installations, with the previous setup it failed since
the command wasn't available in the step it was being done.

Change-Id: I20a549cbaa2ee4b2c762dbae97f5cbf4d0b517c8
Closes-Bug: #1671716
2017-03-10 12:11:34 +02:00
Juan Antonio Osorio Robles
9bc973e3f4 Add tests for tripleo::certmonger::rabbitmq class
Change-Id: I1668b749779bf812d8f55b695dd138cde7eb09d6
2017-03-09 16:19:52 +00:00
Juan Antonio Osorio Robles
3b6113bf0f Enable TLS in the internal network for RabbitMQ
This optionally enables TLS for RabbitMQ  in the internal network. Note
that this leaves enable_internal_tls as undef instead of using the
regular default. This is because we don't want to enable this just now,
since we first want to pass the necessary hieradata via t-h-t. This will
be cleaned in further commits.

bp tls-via-certmonger
Depends-On: I4f37e77ae12e9582fab7d326ebd4c70127c5445f
Depends-On: Ic32b2cb253fa0dc43aad7226b24919b7e588faa9
Change-Id: Ic2a7f877745a0a490ddc9315123bd1180b03c514
2017-03-09 11:08:20 +00:00
Emilien Macchi
03523df5c1 sahara: include authtoken class
authtoken class configures the keystone_authtoken parameters, required
to move to Keystone V3 auth.

Change-Id: Ibfd761fef813faa7bf13881c52c34e20d3eac9e5
2017-03-07 20:42:42 +00:00
Alex Schultz
ffe1cd5c62 Update version for Pike
The current version information is behind that of stable/ocata. In order
to address some version generation issues in packaging, we need to bump
the version numbers for in preparation for the next version.

Change-Id: I586811d9623c4bb03b1b234eaed2b3b365ba6e3e
Releated-Bug: #1669462
2017-03-07 11:27:12 -07:00
Juan Antonio Osorio Robles
a2f3b91fa6 httpd: Clean up heat API profiles and add release note
There were some values that were passed to the classes manually, and
this takes the parameters from t-h-t instead. Also, the release note was
added.

bp tls-via-certmonger

Change-Id: I17c4b7041e16da6489f4b713fdeb28a6e1c5563c
Depends-On: I88e5ea7b9bbf35ae03f84fdc3ec76ae09f11a1b6
2017-03-07 15:04:43 +00:00
Juan Antonio Osorio Robles
d82a7c50c2 Deploy Heat APIs over httpd
This deploys the Heat APIs (api, cfn and cloudwatch) over httpd, and
includes the TLS-everywhere bits.

bp tls-via-certmonger

Change-Id: I23971b0164468e67c9b3577772af84bd947e16f1
2017-03-07 15:31:42 +01:00
Jenkins
0d15f1de5a Merge "Stop the chronyd service" 2017-03-07 13:58:35 +00:00
Jenkins
b235d6b096 Merge "fix typo in release note" 2017-03-07 03:39:32 +00:00
Jenkins
57a9fc998a Merge "Throw warnings for norpm actions" 2017-03-07 03:16:40 +00:00
Emilien Macchi
ca8656e5bf fix typo in release note
Change-Id: I89e544474b3f73a9e00d37dcddb605d5fe979ca8
2017-03-06 21:06:25 -05:00
Alex Schultz
37ba3a8db5 Stop the chronyd service
Since the norpm provider can prevent the chronyd package from actually
getting purged, we need to make sure the chronyd service is stopped and
disabled so that it does not conflict with ntpd.

Change-Id: I7a697aba7aa5a27ba4ab6e46018057f7f01dfab2
Closes-Bug: #1665426
2017-03-06 12:33:53 -07:00
Steven Hardy
149f04e9cf Add docker profile
This configures the docker service on the host, as an alternative
to the firstboot script in docker/firstboot/setup_docker_host.sh

Doing this via puppet will enable easier integration with e.g
the multinode jobs where no firstboot scripts run, and also
enables a better error path in the event the service fails to start

Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: Id8add1e8a0ecaedb7d8a7dc9ba3747c1ac3b8eea
2017-03-06 08:42:54 -07:00
Jenkins
292a751437 Merge "mariadb: Move generation of systemd drop-in to puppet-tripleo" 2017-03-03 20:41:54 +00:00
Alex Schultz
2be36167fd Throw warnings for norpm actions
If the norpm provider attempts to do any install/update/remove actions,
we should throw a warning in the logs so people are aware that the
action did not actually take place.

Change-Id: Ieee5cac3412c709ba6b39316e455d7708cc9d22e
Closes-Bug: #1669666
2017-03-03 09:21:59 -07:00
Jenkins
f0474c10b9 Merge "mysqlclient: Drop hiera calls in favor of getting these via t-h-t" 2017-03-01 01:20:52 +00:00
Jenkins
4f288f3f30 Merge "Configure MySQL client SSL connections via the config file" 2017-03-01 01:20:42 +00:00
Jenkins
26befb04be Merge "Revert "Add httpchk for http services"" 2017-02-28 14:32:17 +00:00
Juan Antonio Osorio Robles
0c00789351 mysqlclient: Drop hiera calls in favor of getting these via t-h-t
This also updates a leftover comment.

Change-Id: I870caf20103b044655e699aac09f6621414f5326
Depends-On: I5af5ccb88e644f4dd25503d8e7a93796695d3039
2017-02-28 14:56:07 +02:00
Juan Antonio Osorio Robles
fb40fb82f4 Configure MySQL client SSL connections via the config file
This does the actual configuration for the mysql client to use SSL if
the parameter is set via t-h-t.

Change-Id: I24e4c195a31109835739e78a6b53d36f661f9fd0
Depends-On: Ifd1a06e0749a05a65f6314255843f572d2209067
2017-02-28 06:56:59 +00:00
Jenkins
4e17386fda Merge "Default neutron dhcp_agents_per_network to number of agents" 2017-02-28 06:53:13 +00:00
Jenkins
cc41a778c8 Merge "Ironic inspector support" 2017-02-28 06:52:48 +00:00
Emilien Macchi
3b78e1cd97 Revert "Add httpchk for http services"
https://bugs.launchpad.net/tripleo/+bug/1668493
I thought about a fix for ceph_rgw, but I realized
we might have missed other services too, specially
the ones we're not testing in CI.
We need to revisit this work and probably
make the code more robust for the services where
no CI coverage is done.

Related-Bug: #1668493
This reverts commit ebcc470ea8a632e6d5c13561a97e817d5f290aac.

Change-Id: I3f79c881d8aeda361a59f9952948355986a7c835
2017-02-28 05:06:28 +00:00
Jenkins
8250ec9611 Merge "Add ceilometer polling agent profile" 2017-02-27 21:01:40 +00:00
Damien Ciabrini
09665170f6 mariadb: Move generation of systemd drop-in to puppet-tripleo
Systemd starts mariadb as user mysql, so in order to allow a large
number of connections (e.g. max_connections=4096) it is necessary to
raise the file descriptor limit via a system drop-in file.

When installing an undercloud, such drop-in file is currently
generated by instack-undercloud (in file puppet-stack-config.pp). But
non-HA overcloud also need such drop-in to be generated.

In order to avoid duplicating code, the drop-in creation code should
be provided by puppet-tripleo. By default, no drop-in is generated;
it has to be enabled by instack-undercloud or tripleo-heat-template
once they will use it (resp. to create undercloud or non-HA overcloud).

This patch does not aim at generating a dynamic file limit based on
the number of connections, this should land in another dedicated
patch.  Instead, it just reuses the limit currently set for undercloud
and HA-overclouds.

Also, the generation of the drop-in does not force a mysql restart
like it currently does in instack-undercloud, to avoid unexpected
service disruption on a non-HA overcloud after a minor update.

Co-Authored-By: Tim Rozet <trozet@redhat.com>

Depends-On: I7ca7b5f7614971455cae2bf7c4bf8264b642b0dc

Change-Id: Ia0907b2ab6062a93fb9363e39c86535a490fbaf6
Partial-Bug: #1648181
Related-Bug: #1524809
2017-02-27 11:40:51 -05:00
Alex Schultz
354818cb19 Add release note for httpchk
Adding release note for Ie72b96c76d7513f84003bc15b6527c97df7ba92f

Change-Id: Ie3dd31519a4a2cc7aa94a5fc7cd7e906482668f3
Related-Bug: #1629052
2017-02-27 09:07:21 -07:00
Brent Eagles
52a68ffc8f Default neutron dhcp_agents_per_network to number of agents
This patch will set neutron's dhcp_agents_per_network equal to the
number of deployed neutron DHCP agents unless otherwise explicitly set.

Partial-bug: #1632721
Change-Id: I5533e42c5ba9f72cc70d80489a07e30ee2341198
2017-02-27 11:46:45 -03:30
Jenkins
93a58e00b6 Merge "Remove todo comment" 2017-02-27 14:40:38 +00:00
Jenkins
41a4b3e8aa Merge "Add httpchk for http services" 2017-02-27 01:13:32 +00:00
Carlos Camacho
9282075728 Remove todo comment
We can remove the sprintf todo comment (Already fixed).

Change-Id: I407cbf015ccd23a28ee01a669d397479277b4fd3
2017-02-26 21:45:20 +01:00
Pradeep Kilambi
7dddf041c5 Add ceilometer polling agent profile
Ceilometer central, compute and ipmi agent classes are
deprecated. Instead we should be using polling agent
with relevant namespace.

Closes-bug: #1662685

Change-Id: I1ee50124bf8936e12414f984e1bcd4545d92e953
2017-02-25 12:19:31 -05:00
Jenkins
9a8ca3a1da Merge "Remove the string cast for using transport_url" 2017-02-25 16:04:22 +00:00
Jenkins
ccc5ff05ba Merge "Replace default to be more robust" 2017-02-24 14:12:29 +00:00
Alex Schultz
ebcc470ea8 Add httpchk for http services
The httpchk health check option should help reduce the situtations
where haproxy thinks the service is up but the service is only
listening and not actively serving http requests.

Change-Id: Ie72b96c76d7513f84003bc15b6527c97df7ba92f
Closes-Bug: #1629052
2017-02-22 06:12:58 -07:00
Carlos Camacho
d0e69f73c1 Remove the string cast for using transport_url
os_transport_url was updated to allow receiving
a string or an integer as parameter.

Fixes the workarounds in puppet-tripleo

Change-Id: I50993514048bf96b5a42b3425a7d6f98778fe694
Depends-On: I9e56f8e2de542b20fe9e6995506cff5bb435e220
2017-02-22 10:39:44 +01:00
Dan Prince
fb6965116d Configure authtoken in Nova Placement
The Nova Placement API's configuration currently relies
on the nova-api profile for its keystone authtoken
configuration. This means that Nova Placement would
fail if it got installed on an isolated node or
docker container (this currently breaks TripleO's
deployment of placement via docker).

This patch creates a new authtoken profile and
calls it via the api and placement roles.

Change-Id: I7b38ab6ba5cae41689ac500d97dec4d09c73d387
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2017-02-21 14:40:43 -07:00
Jenkins
71f655326b Merge "Add VPP service" 2017-02-21 21:16:21 +00:00
Jiri Stransky
d12c004bc9 Stop accidentally removing docker-distribution
By default Puppet does virtual package matching if precise name matching
fails. Docker-distribution RPM "provides" docker-registry:

bash-4.2# rpm -q --whatprovides docker-registry
docker-distribution-2.5.1-1.el7.x86_64

This means that when we wanted to make docker-registry package absent,
we were actually removing docker-distribution instead. This is now fixed
by allow_virtual => false. Only name matching is performed.

Change-Id: I1f93b404085f0bc2b6c063f573c801db6409c0bb
Closes-Bug: #1666459
2017-02-21 14:01:31 +01:00
Dan Prince
5fbe3853fb Ironic inspector support
This includes a new ironic-inspector profile, and updates
to the mysql and keystone profiles so that a database
and endpoints are also created when the inspector
is enabled.

Change-Id: I4a71a95efb87a10528df0600277768969a32117b
2017-02-20 13:53:57 -05:00