Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
fcc61b72
Commit
fcc61b72
authored
Sep 06, 2017
by
Michael Youngstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ec2 a j2 file
parent
898b3afb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
1 deletions
+47
-1
playbooks/roles/jenkins_build/defaults/main.yml
+1
-1
playbooks/roles/jenkins_build/files/ec2_config.yml
+0
-0
playbooks/roles/jenkins_build/tasks/main.yml
+2
-0
playbooks/roles/jenkins_build/templates/ec2_config.yml.j2
+44
-0
No files found.
playbooks/roles/jenkins_build/defaults/main.yml
View file @
fcc61b72
...
...
@@ -37,7 +37,7 @@ JENKINS_EC2_PRIVATE_KEY: ''
JENKINS_EC2_REGION
:
'
us-east-1'
JENKINS_EC2_ACCESS_KEY_ID
:
'
'
JENKINS_EC2_SECRET_ACCESS_KEY
:
'
'
JENKINS_EC2_
IAM_INSTANCE_PROFILE
:
'
'
JENKINS_EC2_
AMIS
:
[]
# GIT CONFIG DEFAULT SECRET
JENKINS_GIT_EMAIL
:
'
jenkins@example.com'
...
...
playbooks/roles/jenkins_build/files/ec2_config.yml
deleted
100644 → 0
View file @
898b3afb
This diff is collapsed.
Click to expand it.
playbooks/roles/jenkins_build/tasks/main.yml
View file @
fcc61b72
...
...
@@ -19,6 +19,8 @@
with_items
:
-
credentials
-
security
-
ghprb_config
-
ec2_config
tags
:
-
install
-
install:base
...
...
playbooks/roles/jenkins_build/templates/ec2_config.yml.j2
0 → 100644
View file @
fcc61b72
---
CLOUDS:
- NAME: '{{ JENKINS_EC2_REGION }}'
ACCESS_KEY_ID: '{{ JENKINS_EC2_ACCESS_KEY_ID }}'
SECRET_ACCESS_KEY: '{{ JENKINS_EC2_SECRET_ACCESS_KEY }}'
USE_INSTANCE_PROFILE_FOR_CREDS: false
REGION: '{{ JENKINS_EC2_REGION }}'
EC2_PRIVATE_KEY_PATH: '{{ build_jenkins_config_path }}/ec2/id_rsa'
INSTANCE_CAP: '250'
AMIS:
{% for ami in JENKINS_EC2_AMIS %}
- AMI_ID: '{{ ami.AMI_ID }}'
AVAILABILITY_ZONE: '{{ ami.AVAILABILITY_ZONE }}'
SPOT_CONFIG:
SPOT_MAX_BID_PRICE: '{{ ami.SPOT_CONFIG.SPOT_MAX_BID_PRICE }}'
SPOT_INSTANCE_BID_TYPE: '{{ ami.SPOT_CONFIG.SPOT_INSTANCE_BID_TYPE }}'
SECURITY_GROUPS: '{{ ami.SECURITY_GROUPS }}'
REMOTE_FS_ROOT: '{{ ami.REMOTE_FS_ROOT }}'
SSH_PORT: '{{ ami.SSH_PORT }}'
INSTANCE_TYPE: '{{ ami.INSTANCE_TYPE }}'
LABEL_STRING: '{{ ami.LABEL_STRING }}'
MODE: '{{ ami.MODE }}'
DESCRIPTION: '{{ ami.DESCRIPTION }}'
INIT_SCRIPT_PATH: '{{ ami.INIT_SCRIPT_PATH }}'
TEMP_DIR: '{{ ami.TEMP_DIR }}'
USER_DATA: '{{ ami.USER_DATA }}'
NUM_EXECUTORS: '{{ ami.NUM_EXECUTORS }}'
REMOTE_ADMIN: '{{ ami.REMOTE_ADMIN }}'
ROOT_COMMAND_PREFIX: '{{ ami.ROOT_COMMAND_PREFIX }}'
JVM_OPTIONS: '{{ ami.JVM_OPTIONS }}'
STOP_ON_TERMINATE: '{{ ami.STOP_ON_TERMINATE }}'
SUBNET_ID: '{{ ami.SUBNET_ID }}'
TAGS:
{% for tag in ami.TAGS %}
- NAME: '{{ tag.NAME }}'
VALUE: '{{ tag.VALUE }}'
{% endfor %}
IDLE_TERMINATION_MINUTES: '{{ ami.IDLE_TERMINATION_MINUTES }}'
USE_PRIVATE_DNS_NAME: '{{ ami.USE_PRIVATE_DNS_NAME }}'
INSTANCE_CAP: '{{ ami.INSTANCE_CAP }}'
IAM_INSTANCE_PROFILE: '{{ ami.IAM_INSTANCE_PROFILE }}'
USE_EPHEMERAL_DEVICES: '{{ ami.USE_EPHEMERAL_DEVICES }}'
LAUNCH_TIMEOUT: '{{ ami.LAUNCH_TIMEOUT }}'
{% endfor %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment