diff options
| author | Sam Yaple <sam@yaple.net> | 2015-09-25 12:58:37 +0000 |
|---|---|---|
| committer | Sam Yaple <sam@yaple.net> | 2015-09-25 12:58:44 +0000 |
| commit | 3d81353706d262b673193d9ba44163917cc21636 (patch) | |
| tree | e20b38a7b1ace52f479af4d1100da3e041809245 /docker | |
| parent | 0cc328c625498192d5eeaeaac04d5a397737b271 (diff) | |
| download | kolla-3d81353706d262b673193d9ba44163917cc21636.tar.gz kolla-3d81353706d262b673193d9ba44163917cc21636.zip | |
Replace config-external - swift
Change-Id: I785cb53d64cbf8dbc0fad97882f9fd0307982e5d
Partially-Implements: blueprint replace-config-external
Diffstat (limited to 'docker')
| -rwxr-xr-x | docker/swift/swift-account-auditor/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-account-reaper/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-account-replicator/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-account-server/start.sh | 13 | ||||
| -rwxr-xr-x | docker/swift/swift-container-auditor/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-container-replicator/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-container-server/start.sh | 13 | ||||
| -rwxr-xr-x | docker/swift/swift-container-updater/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-object-auditor/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-object-expirer/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-object-replicator/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-object-server/start.sh | 13 | ||||
| -rwxr-xr-x | docker/swift/swift-object-updater/start.sh | 11 | ||||
| -rwxr-xr-x | docker/swift/swift-proxy-server/start.sh | 12 | ||||
| -rwxr-xr-x | docker/swift/swift-rsyncd/start.sh | 11 |
15 files changed, 60 insertions, 112 deletions
diff --git a/docker/swift/swift-account-auditor/start.sh b/docker/swift/swift-account-auditor/start.sh index c83000da1..d43e03581 100755 --- a/docker/swift/swift-account-auditor/start.sh +++ b/docker/swift/swift-account-auditor/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-account-auditor" -ARGS="/etc/swift/account-auditor.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-account-reaper/start.sh b/docker/swift/swift-account-reaper/start.sh index fb6dcfe36..d43e03581 100755 --- a/docker/swift/swift-account-reaper/start.sh +++ b/docker/swift/swift-account-reaper/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-account-reaper" -ARGS="/etc/swift/account-reaper.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-account-replicator/start.sh b/docker/swift/swift-account-replicator/start.sh index c820209e2..d43e03581 100755 --- a/docker/swift/swift-account-replicator/start.sh +++ b/docker/swift/swift-account-replicator/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-account-replicator" -ARGS="/etc/swift/account-replicator.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-account-server/start.sh b/docker/swift/swift-account-server/start.sh index 402ee6f44..d43e03581 100755 --- a/docker/swift/swift-account-server/start.sh +++ b/docker/swift/swift-account-server/start.sh @@ -1,16 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-account-server" -ARGS="/etc/swift/account-server.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -source /opt/kolla/config-swift.sh - -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-container-auditor/start.sh b/docker/swift/swift-container-auditor/start.sh index 27dfd0e6b..d43e03581 100755 --- a/docker/swift/swift-container-auditor/start.sh +++ b/docker/swift/swift-container-auditor/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-container-auditor" -ARGS="/etc/swift/container-auditor.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-container-replicator/start.sh b/docker/swift/swift-container-replicator/start.sh index b110ab8af..d43e03581 100755 --- a/docker/swift/swift-container-replicator/start.sh +++ b/docker/swift/swift-container-replicator/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-container-replicator" -ARGS="/etc/swift/container-replicator.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-container-server/start.sh b/docker/swift/swift-container-server/start.sh index 78070ab29..d43e03581 100755 --- a/docker/swift/swift-container-server/start.sh +++ b/docker/swift/swift-container-server/start.sh @@ -1,16 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-container-server" -ARGS="/etc/swift/container-server.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -source /opt/kolla/config-swift.sh - -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-container-updater/start.sh b/docker/swift/swift-container-updater/start.sh index d2fe2eb8c..d43e03581 100755 --- a/docker/swift/swift-container-updater/start.sh +++ b/docker/swift/swift-container-updater/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-container-updater" -ARGS="/etc/swift/container-updater.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-object-auditor/start.sh b/docker/swift/swift-object-auditor/start.sh index 0f0111a8e..d43e03581 100755 --- a/docker/swift/swift-object-auditor/start.sh +++ b/docker/swift/swift-object-auditor/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-object-auditor" -ARGS="/etc/swift/object-auditor.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-object-expirer/start.sh b/docker/swift/swift-object-expirer/start.sh index 366525d11..d43e03581 100755 --- a/docker/swift/swift-object-expirer/start.sh +++ b/docker/swift/swift-object-expirer/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-object-expirer" -ARGS="/etc/swift/object-expirer.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-object-replicator/start.sh b/docker/swift/swift-object-replicator/start.sh index dbb142499..d43e03581 100755 --- a/docker/swift/swift-object-replicator/start.sh +++ b/docker/swift/swift-object-replicator/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-object-replicator" -ARGS="/etc/swift/object-replicator.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-object-server/start.sh b/docker/swift/swift-object-server/start.sh index f2a32b4d3..d43e03581 100755 --- a/docker/swift/swift-object-server/start.sh +++ b/docker/swift/swift-object-server/start.sh @@ -1,16 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-object-server" -ARGS="/etc/swift/object-server.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -source /opt/kolla/config-swift.sh - -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-object-updater/start.sh b/docker/swift/swift-object-updater/start.sh index 5e970b416..d43e03581 100755 --- a/docker/swift/swift-object-updater/start.sh +++ b/docker/swift/swift-object-updater/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-object-updater" -ARGS="/etc/swift/object-updater.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-proxy-server/start.sh b/docker/swift/swift-proxy-server/start.sh index 99a142e52..7adad007a 100755 --- a/docker/swift/swift-proxy-server/start.sh +++ b/docker/swift/swift-proxy-server/start.sh @@ -1,16 +1,12 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/swift-proxy-server" -ARGS="/etc/swift/proxy-server.conf --verbose" - # Loading common functions. source /opt/kolla/kolla-common.sh - source /opt/kolla/config-swift.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD diff --git a/docker/swift/swift-rsyncd/start.sh b/docker/swift/swift-rsyncd/start.sh index 2267bb59f..d43e03581 100755 --- a/docker/swift/swift-rsyncd/start.sh +++ b/docker/swift/swift-rsyncd/start.sh @@ -1,14 +1,11 @@ #!/bin/bash - set -o errexit -CMD="/usr/bin/rsync" -ARGS="--daemon --no-detach --config=/etc/rsyncd.conf" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) -exec $CMD $ARGS +exec $CMD |
