Merge "[Queens] Enable container auth support" into stable/queens
This commit is contained in:
commit
7c79d1be15
|
@ -68,6 +68,23 @@ parameters:
|
||||||
default: ''
|
default: ''
|
||||||
description: User added to the docker group in order to use container commands.
|
description: User added to the docker group in order to use container commands.
|
||||||
type: string
|
type: string
|
||||||
|
ContainerImageRegistryLogin:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Flag to enable container registry login actions during the deployment.
|
||||||
|
Setting this to true will cause login calls to be performed during the
|
||||||
|
deployment.
|
||||||
|
ContainerImageRegistryCredentials:
|
||||||
|
type: json
|
||||||
|
hidden: true
|
||||||
|
default: {}
|
||||||
|
description: |
|
||||||
|
Mapping of image registry hosts to login credentials. Must be in the following example format
|
||||||
|
|
||||||
|
docker.io:
|
||||||
|
username: pa55word
|
||||||
|
'192.0.2.1:8787':
|
||||||
|
registry_username: password
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
|
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
|
||||||
|
@ -75,6 +92,7 @@ conditions:
|
||||||
service_debug_unset: {equals : [{get_param: DockerDebug}, '']}
|
service_debug_unset: {equals : [{get_param: DockerDebug}, '']}
|
||||||
deployment_user_is_empty: {equals : [{get_param: DeploymentUser}, '']}
|
deployment_user_is_empty: {equals : [{get_param: DeploymentUser}, '']}
|
||||||
additional_sockets_is_empty: {equals : [{get_param: DockerAdditionalSockets}, []]}
|
additional_sockets_is_empty: {equals : [{get_param: DockerAdditionalSockets}, []]}
|
||||||
|
container_registry_login: {equals: [{get_param: ContainerImageRegistryLogin}, true]}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
|
@ -111,6 +129,10 @@ outputs:
|
||||||
- additional_sockets_is_empty
|
- additional_sockets_is_empty
|
||||||
- {}
|
- {}
|
||||||
- tripleo::profile::base::docker::additional_sockets: {get_param: DockerAdditionalSockets}
|
- tripleo::profile::base::docker::additional_sockets: {get_param: DockerAdditionalSockets}
|
||||||
|
- if:
|
||||||
|
- container_registry_login
|
||||||
|
- tripleo::profile::base::docker::registry_credentials: {get_param: ContainerImageRegistryCredentials }
|
||||||
|
- {}
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::docker
|
include ::tripleo::profile::base::docker
|
||||||
upgrade_tasks:
|
upgrade_tasks:
|
||||||
|
|
Loading…
Reference in New Issue