Skip to content

Commit

Permalink
redhat-openstack#339 rhn config options
Browse files Browse the repository at this point in the history
  • Loading branch information
ioggstream committed Aug 30, 2017
1 parent 1b6bda3 commit 626477b
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ parameters:
deploy_registry: False

# If using RHEL image, add RHN credentials for RPM installation on VMs
# and check openshift.yaml for further RHN options
rhn_username: ""
rhn_password: ""
rhn_pool: '' # OPTIONAL
Expand Down
8 changes: 8 additions & 0 deletions bastion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ parameters:
type: string
hidden: true

rhn_config_options:
type: string
description: >
Further arguments for subscription-manager config, eg. --server.proxy_hostname
hidden: true
default: ''

# Red Hat satellite subscription parameters
sat6_hostname:
type: string
Expand Down Expand Up @@ -323,6 +330,7 @@ resources:
$OCP_VERSION: {get_param: ocp_version}
$RHN_USERNAME: {get_param: rhn_username}
$RHN_PASSWORD: {get_param: rhn_password}
$RHN_CONFIG_OPTIONS: {get_param: rhn_config_options}
$SAT6_HOSTNAME: {get_param: sat6_hostname}
$SAT6_ORGANIZATION: {get_param: sat6_organization}
$SAT6_ACTIVATIONKEY: {get_param: sat6_activationkey}
Expand Down
8 changes: 7 additions & 1 deletion fragments/rhn-register.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ function use_rhn() {
function register_rhn() {
# RHN_USERNAME=$1
# RHN_PASSWORD=$2
# RHN_CONFIG_OPTIONS=$3

if [ -n "$3" ]; then
subscription-manager config $3
fi

retry subscription-manager register --username="$1" --password="$2"
}

Expand Down Expand Up @@ -60,7 +66,7 @@ if use_satellite6 ; then
install_sat6_ca_certs $SAT6_HOSTNAME
register_sat6 $SAT6_ORGANIZATION $SAT6_ACTIVATIONKEY
elif use_rhn ; then
register_rhn $RHN_USERNAME $RHN_PASSWORD
register_rhn $RHN_USERNAME $RHN_PASSWORD "$RHN_CONFIG_OPTIONS"
else
exit 0
fi
Expand Down
8 changes: 8 additions & 0 deletions infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ parameters:
type: string
hidden: true

rhn_config_options:
type: string
description: >
Further arguments for subscription-manager config, eg. --server.proxy_hostname
hidden: true
default: ''

# Red Hat satellite subscription parameters
sat6_hostname:
type: string
Expand Down Expand Up @@ -375,6 +382,7 @@ resources:
$OCP_VERSION: {get_param: ocp_version}
$RHN_USERNAME: {get_param: rhn_username}
$RHN_PASSWORD: {get_param: rhn_password}
$RHN_CONFIG_OPTIONS: {get_param: rhn_config_options}
$SAT6_HOSTNAME: {get_param: sat6_hostname}
$SAT6_ORGANIZATION: {get_param: sat6_organization}
$SAT6_ACTIVATIONKEY: {get_param: sat6_activationkey}
Expand Down
8 changes: 8 additions & 0 deletions loadbalancer_dedicated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ parameters:
type: string
hidden: true

rhn_config_options:
type: string
description: >
Further arguments for subscription-manager config, eg. --server.proxy_hostname
hidden: true
default: ''

# Red Hat satellite subscription parameters
sat6_hostname:
type: string
Expand Down Expand Up @@ -313,6 +320,7 @@ resources:
$OCP_VERSION: {get_param: ocp_version}
$RHN_USERNAME: {get_param: rhn_username}
$RHN_PASSWORD: {get_param: rhn_password}
$RHN_CONFIG_OPTIONS: {get_param: rhn_config_options}
$SAT6_HOSTNAME: {get_param: sat6_hostname}
$SAT6_ORGANIZATION: {get_param: sat6_organization}
$SAT6_ACTIVATIONKEY: {get_param: sat6_activationkey}
Expand Down
8 changes: 8 additions & 0 deletions master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ parameters:
type: string
hidden: true

rhn_config_options:
type: string
description: >
Further arguments for subscription-manager config, eg. --server.proxy_hostname
hidden: true
default: ''

# Red Hat satellite subscription parameters
sat6_hostname:
type: string
Expand Down Expand Up @@ -367,6 +374,7 @@ resources:
$OCP_VERSION: {get_param: ocp_version}
$RHN_USERNAME: {get_param: rhn_username}
$RHN_PASSWORD: {get_param: rhn_password}
$RHN_CONFIG_OPTIONS: {get_param: rhn_config_options}
$SAT6_HOSTNAME: {get_param: sat6_hostname}
$SAT6_ORGANIZATION: {get_param: sat6_organization}
$SAT6_ACTIVATIONKEY: {get_param: sat6_activationkey}
Expand Down
8 changes: 8 additions & 0 deletions node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ parameters:
type: string
hidden: true

rhn_config_options:
type: string
description: >
Further arguments for subscription-manager config, eg. --server.proxy_hostname
hidden: true
default: ''

# Red Hat satellite subscription parameters
sat6_hostname:
type: string
Expand Down Expand Up @@ -495,6 +502,7 @@ resources:
$OCP_VERSION: {get_param: ocp_version}
$RHN_USERNAME: {get_param: rhn_username}
$RHN_PASSWORD: {get_param: rhn_password}
$RHN_CONFIG_OPTIONS: {get_param: rhn_config_options}
$SAT6_HOSTNAME: {get_param: sat6_hostname}
$SAT6_ORGANIZATION: {get_param: sat6_organization}
$SAT6_ACTIVATIONKEY: {get_param: sat6_activationkey}
Expand Down
12 changes: 12 additions & 0 deletions openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ parameters:
hidden: true
default: ''

rhn_config_options:
type: string
description: >
Further arguments for subscription-manager config, eg. --server.proxy_hostname
hidden: true
default: ''

# Red Hat satellite subscription parameters
sat6_hostname:
type: string
Expand Down Expand Up @@ -571,6 +578,7 @@ resources:
ssh_user: {get_param: ssh_user}
rhn_username: {get_param: rhn_username}
rhn_password: {get_param: rhn_password}
rhn_config_options: {get_param: rhn_config_options}
sat6_hostname: {get_param: sat6_hostname}
sat6_organization: {get_param: sat6_organization}
sat6_activationkey: {get_param: sat6_activationkey}
Expand Down Expand Up @@ -612,6 +620,7 @@ resources:
ssh_user: {get_param: ssh_user}
rhn_username: {get_param: rhn_username}
rhn_password: {get_param: rhn_password}
rhn_config_options: {get_param: rhn_config_options}
sat6_hostname: {get_param: sat6_hostname}
sat6_organization: {get_param: sat6_organization}
sat6_activationkey: {get_param: sat6_activationkey}
Expand Down Expand Up @@ -656,6 +665,7 @@ resources:
ssh_user: {get_param: ssh_user}
rhn_username: {get_param: rhn_username}
rhn_password: {get_param: rhn_password}
rhn_config_options: {get_param: rhn_config_options}
sat6_hostname: {get_param: sat6_hostname}
sat6_organization: {get_param: sat6_organization}
sat6_activationkey: {get_param: sat6_activationkey}
Expand Down Expand Up @@ -711,6 +721,7 @@ resources:
docker_volume_size: {get_param: node_docker_volume_size_gb}
rhn_username: {get_param: rhn_username}
rhn_password: {get_param: rhn_password}
rhn_config_options: {get_param: rhn_config_options}
sat6_hostname: {get_param: sat6_hostname}
sat6_organization: {get_param: sat6_organization}
sat6_activationkey: {get_param: sat6_activationkey}
Expand Down Expand Up @@ -1001,6 +1012,7 @@ resources:
ssh_user: {get_param: ssh_user}
rhn_username: {get_param: rhn_username}
rhn_password: {get_param: rhn_password}
rhn_config_options: {get_param: rhn_config_options}
sat6_hostname: {get_param: sat6_hostname}
sat6_organization: {get_param: sat6_organization}
sat6_activationkey: {get_param: sat6_activationkey}
Expand Down

0 comments on commit 626477b

Please sign in to comment.