-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitlabCE.json
More file actions
51 lines (35 loc) · 1.18 KB
/
gitlabCE.json
File metadata and controls
51 lines (35 loc) · 1.18 KB
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
{ "_comment": "Comment here",
"builders": [{
"type": "amazon-ebs",
"region": "{{user `region`}}",
"instance_type": "t2.micro",
"ssh_username": "centos",
"ssh_keypair_name": "packer1",
"ssh_private_key_file": "/home/centos/.ssh/id_rsa",
"ami_name": "ami-01ed306a12b7d1c96",
"source_ami_filter": {
"owners": ["137112412989"],
"most_recent": true
}
}],
"_comment2": "Comment here",
"provisioners": [
{
"type": "file",
"source": "./gitlabCE.repo",
"destination": "/tmp/"
},
{
"type": "shell",
"inline":[
"sudo yum update -y",
"sudo yum install ansible -y",
"sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash -y",
"sudo yum install gitlab-ce -y",
"sudo firewall-cmd --permanent --zone=public --add-service=http -y",
"sudo firewall-cmd --permanent --zone=public --add-service=https -y",
"sudo firewall-cmd --reload -y"
]
}
]
}