-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathjenkins.json
39 lines (39 loc) · 1 KB
/
jenkins.json
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
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}",
"aws_region": "{{ env `AWS_REGION` }}"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `aws_region`}}",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "hardened-base-*",
"root-device-type": "ebs"
},
"owners": ["self"],
"most_recent": true
},
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "jenkins-server-{{timestamp}}"
}],
"provisioners": [{
"type": "shell",
"inline": ["sleep 30"]
},
{
"type": "ansible",
"playbook_file": "jenkins.yml",
"extra_arguments": ["--extra-vars", "ansible_python_interpreter=/usr/bin/python3"]
}],
"post-processors": [{
"output": "manifest.json",
"strip_path": true,
"type": "manifest"
}]
}