11 Commits

Author SHA1 Message Date
Martin André
f54f340630 Make set_configs.py work with symlinks
Closes-Bug: #1702305

Change-Id: I92a404b8d301937dc1847d42576e30db43951990
2017-07-06 11:18:53 +02:00
Chulmin Kang
ea3d140cab Fix argument to handle_permissions
Fix the format of argument passed to handle_permissions function, so
that handle_permissions can handle permissions and ownerships of
config_files.

Change-Id: Ic07975a16973df22cdaa6685fc326620812f8f65
Closes-Bug: #1701876
2017-07-02 19:05:36 +09:00
Martin André
e313c89621 Introduce merge and preserve_properties for config_files
The `merge` option will basically copy all the files recursively inside
the container without removing the existing files or directory, while
the `preserve_properties` option keeps the file attributes
(permissions, ownership, timestamps) in the container.

This is useful if you have extracted some config files from a container
and want to use them in another container based on the same image.

This makes TripleO usage of Kolla much more robust.

Change-Id: I78dcec741a941dc21adba33ba33a6dc6ff1d217c
2017-06-27 08:44:41 +02:00
Martin André
748a056b09 Allow setting copied files group more precisely
Previously with the config_files structure of config.json, the group
name was automatically set to the one of the user name. It is now
possible to set the group name in the same fashion than the
'permissions' structure with:

  owner: 'desired_owner:desired_group'

Closes-Bug: #1696095
Change-Id: Ibae9f74e2351c81a717294467aedc51ea773c41e
2017-06-21 18:17:44 +02:00
Jeffrey Zhang
97e17becce Fix the set config error
* fix wrong handle for directory
* refactor the code

Closes-Bug: #1563741
Change-Id: I83869e074cb2924f1c5b49a67e57aefef623a8b0
2017-01-18 03:38:22 +00:00
Steven Dake
025d57f820 Remove dependencies on kazoo and friends
Since kolla-mesos has been retired, there is no need in the code
base to keep the zookeeper implementation.  As a result, just remove
it.  If we were to keep it we need virtualenvs for that part of the
code base which installs the python dependencies related to it
for from-binary installs.

This just simplifies the implementation tremendously and culls dead
code.

Change-Id: Ieda226e652d67f5b5667112f4f2556f3171366d3
Closes-Bug: #1577194
2016-05-02 06:12:50 -07:00
Jeffrey Zhang
72ac7a5541 Reconfigure keystone service
Partially-implements: bp kolla-reconfig

Change-Id: Ied293e59bf4531e88a0e5e5bf9a5f5f495d2a0e7
2016-02-27 02:15:48 +00:00
Jeffrey Zhang
67e4607d43 Add py27 py34 pypy unittest
Change-Id: Iaf58463bd156924839062b8284a2d7151a153db5
2016-01-13 13:47:49 +08:00
Angus Salkeld
27c0ae0624 Add support for copying files from a "zk://" source
Co-Authored-By: Michal Rostecki <mrostecki@mirantis.com>
Implements: blueprint zookeeper

Change-Id: I176f063d3802716846b921e210c1569d28bd90d8
2015-12-02 10:25:43 +01:00
Angus Salkeld
2f1c00a467 Add support for loading kolla config from ENV
Implements: blueprint zookeeper

Change-Id: Ibabcb5d6d304be9290633338c513f16651d4479a
2015-11-17 07:51:32 +00:00
Angus Salkeld
1af722eb49 Add a test case for load_config
This is just a basic test to make sure loading from file works.

Change-Id: I074f36023ac4198c436fcee1668d32f9d1f0e61b
2015-11-10 13:37:51 +10:00