Bug 1293724

Summary: apiServerArguments and controllerArgument needs to be able to be defined in ansible hosts file
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: InstallerAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: aos-bugs, bleanhar, gpei, jdetiber, jialiu, jokerman, lxia, mmccomas, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 16:37:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ryan Howe 2015-12-22 20:50:17 UTC
Description of problem:

apiServerArguments needs to be able to be defined in ansible hosts file

https://docs.openshift.com/enterprise/3.1/install_config/configuring_aws.html


Version-Release number of selected component (if applicable):
3.1

Additional info:

This may be possible already and may need to just be a docs bug. 

https://github.com/openshift/openshift-ansible/blob/15aa17c6162c036f6b164f225d2a071c138af965/roles/openshift_master/templates/master.yaml.v1.j2#L84


osm_api_server_args={'cloud-provider': ['aws'].'cloud-config':['/etc/aws/aws.conf']}

osm_controller_args={'cloud-provider':['aws'].'cloud-config':['/etc/aws/aws.conf']}

Comment 2 Jason DeTiberus 2016-03-16 02:55:01 UTC
It is possible to set these values using osm_controller_args and osm_api_server_args.

There is basic usage in the example inventory files provided in openshift-ansible.

Comment 3 Gaoyun Pei 2016-03-18 06:20:40 UTC
Specify the two parameters in ansible inventory:
osm_api_server_args={'cloud-provider' : ['aws'], 'cloud-config' : ['/etc/aws/aws.conf']}
osm_controller_args={'cloud-provider' : ['aws'], 'cloud-config' : ['/etc/aws/aws.conf']}


After installation, check the master-config.yml
kubernetesMasterConfig:
  apiServerArguments:
    cloud-config:
    - /etc/aws/aws.conf
    cloud-provider:
    - aws
  controllerArguments:
    cloud-config:
    - /etc/aws/aws.conf
    cloud-provider:
    - aws
  ...

Comment 5 errata-xmlrpc 2016-05-12 16:37:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1065