Allow volumes in puppet_config containers spec
authorJames Slagle <jslagle@redhat.com>
Tue, 27 Jun 2017 16:48:59 +0000 (12:48 -0400)
committerMartin André <m.andre@redhat.com>
Fri, 30 Jun 2017 06:14:51 +0000 (08:14 +0200)
commit1847a014232afa726d01b3f75f46eec7b5444a45
tree1e41dc9004a8a4e76ffe350ad6ba4d353a956dc5
parenta396ac325af8950acb18227f1a6a487159776020
Allow volumes in puppet_config containers spec

Mounting host volumes when running containers via puppet_config already
works and is supported with docker-puppet.py. However, the validation in
yaml-validate.py does not allow it. This patch makes it allowed by the
validation.

It is sometimes necessary since some puppet modules expect to make
persistent file system changes other than just configuration data under
/etc.

In particular, ironic inspector expects to configure a http and tftp
root director with an ipxe configuration. See:
https://github.com/openstack/puppet-ironic/blob/master/manifests/inspector.pp
These changes would be lost if the value for those directories are not
mounted as host volumes.

Change-Id: Ie51c653f4c666fbaaef0ea80990e2e61f4b1353b
tools/yaml-validate.py