Fix command for copying the Kayobe configuration

There were two problems with this command. First, we needed to copy the
etc/kayobe directory instead of just etc, to avoid generating an extra
layer of kayobe directories. Second, its behavior was different
depending on whether the target directory already existed or not:
instead, copying files under etc/kayobe always produces a predictable
result.

Change-Id: I3923e1fad2e1e9a5b206db93d48c08545cbdccef
This commit is contained in:
Pierre Riteau 2018-08-31 15:18:00 +01:00
parent 026e57af51
commit 1ee04846f6
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ should be merged to incorporate any upstream changes with local modifications.
Alternatively, the baseline Kayobe configuration may be copied from a checkout
of the Kayobe repository to the Kayobe configuration path::
$ cp -r etc/ ${KAYOBE_CONFIG_PATH:-/etc/kayobe}
$ mkdir -p ${KAYOBE_CONFIG_PATH:-/etc/kayobe/}
$ cp -r etc/kayobe/* ${KAYOBE_CONFIG_PATH:-/etc/kayobe/}
Once in place, each of the YAML and inventory files should be manually
inspected and configured as required.