Browse Source

add AWS example

See: Id2cd819def3e83f92fcd8126a74aa19690dcf4c8

Change-Id: I19d400d260b2844779c1106c01a0a13aa27010b3
changes/52/724152/11
Gonéri Le Bouder 2 years ago
parent
commit
e8ffcf8d27
No known key found for this signature in database
GPG Key ID: 49ED9B94765572E
  1. 12
      ansible/group_vars/nodepool.yaml
  2. 1
      nodepool/aws/credentials.j2
  3. 17
      nodepool/nodepool.yaml
  4. 0
      nodepool/openstack/clouds.yaml.j2

12
ansible/group_vars/nodepool.yaml

@ -47,4 +47,14 @@ openstacksdk_user_home: /var/lib/nodepool
openstacksdk_pip_virtualenv_python: python3
openstacksdk_pip_virtualenv: /opt/venv/nodepool-untagged
openstacksdk_file_clouds_yaml_src: "{{ windmill_config_git_dest }}/nodepool/clouds.yaml.j2"
openstacksdk_file_clouds_yaml_src: "{{ windmill_config_git_dest }}/nodepool/openstack/clouds.yaml.j2"
# windmill.goto3
boto3_user_name: nodepool
boto3_user_group: nodepool
boto3_user_home: /var/lib/nodepool
boto3_pip_virtualenv_python: python3
boto3_pip_virtualenv: /opt/venv/nodepool-untagged
boto3_file_credentials_src: "{{ windmill_config_git_dest }}/nodepool/aws/credentials.j2"

1
nodepool/aws/credentials.j2

@ -0,0 +1 @@
# Default template for ~/.aws/credentials

17
nodepool/nodepool.yaml

@ -23,6 +23,23 @@ providers:
diskimage: ubuntu-bionic
min-ram: 8192
console-log: true
- name: ec2-us-east-2
driver: aws
region-name: us-east-2
cloud-images:
- name: ubuntu-bionic
image-id: ami-07c1207a9d40bc3bd
username: ec2-user
pools:
- name: main
max-servers: 5
subnet-id: subnet-0eb42065e8c196f38
security-group-id: sg-0dea0b7beee7f8b88
labels:
- name: ubuntu-bionic
cloud-image: ubuntu-bionic
instance-type: t2.small
key-name: zuul
diskimages:
- name: ubuntu-bionic

0
nodepool/clouds.yaml.j2 → nodepool/openstack/clouds.yaml.j2

Loading…
Cancel
Save