summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws_launch_config/README.md
blob: 52b7e83b63c7de68772943175f37469a498c0596 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
openshift_aws_launch_config
=========

Ansible role to create an AWS launch config for a scale group.

This includes the AMI, volumes, user_data, etc.

Requirements
------------

Ansible Modules:


Role Variables
--------------
- r_openshift_aws_launch_config_name: "{{ launch_config_name }}"
- r_openshift_aws_launch_config_clusterid: "{{ clusterid }}"
- r_openshift_aws_launch_config_region: "{{ region }}"
- r_openshift_aws_launch_config: "{{ node_group_config }}"
```yaml
    master:
      instance_type: m4.xlarge
      ami: ami-cdeec8b6  # if using an encrypted AMI this will be replaced
      volumes:
      - device_name: /dev/sdb
        volume_size: 100
        device_type: gp2
        delete_on_termination: False
      health_check:
        period: 60
        type: EC2
      min_size: 3
      max_size: 3
      desired_size: 3
      tags:
        host-type: master
        sub-host-type: default
      wait_for_instances: True
```
- r_openshift_aws_launch_config_type: compute
- r_openshift_aws_launch_config_custom_image: ami-xxxxx
- r_openshift_aws_launch_config_bootstrap_token: <string of kubeconfig>

Dependencies
------------


Example Playbook
----------------
```yaml
  - name: create compute nodes config
    include_role:
      name: openshift_aws_launch_config
    vars:
      r_openshift_aws_launch_config_name: "{{ launch_config_name }}"
      r_openshift_aws_launch_config_clusterid: "{{ clusterid }}"
      r_openshift_aws_launch_config_region: "{{ region }}"
      r_openshift_aws_launch_config: "{{ node_group_config }}"
      r_openshift_aws_launch_config_type: compute
      r_openshift_aws_launch_config_custom_image: ami-1234
      r_openshift_aws_launch_config_bootstrap_token: abcd
```

License
-------

Apache 2.0

Author Information
------------------

Openshift