File: oci-puppet

package info (click to toggle)
openstack-cluster-installer 43.0.18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,484 kB
  • sloc: php: 19,127; sh: 18,142; ruby: 75; makefile: 31; xml: 8
file content (30 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

set -e

export LANG=en_US.utf-8
export LC_ALL=en_US.utf-8

# We should never run puppet with OpenStack credentials.
# This otherwise may fail on controllers.
# Let's unset them all.
unset OS_CLOUD
unset OS_AUTH_TYPE
unset OS_PROJECT_DOMAIN_NAME
unset OS_USER_DOMAIN_NAME
unset OS_PROJECT_NAME
unset OS_USERNAME
unset OS_PASSWORD
unset OS_AUTH_URL
unset OS_REGION_NAME
unset OS_IDENTITY_API_VERSION
unset OS_IMAGE_API_VERSION
unset OS_CACERT

if [ -e /etc/oci/self-signed-api-cert ] ; then
	OS_CACERT=/etc/ssl/certs/oci-pki-oci-ca-chain.pem puppet agent --test --detailed-exitcodes --summarize $@
else
	puppet agent --test --detailed-exitcodes --summarize $@
fi

exit 0