-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.pkr.hcl
151 lines (127 loc) · 3.44 KB
/
variables.pkr.hcl
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
variable OS_CLOUD {
description = "The openstack cloud instance on which we provision (ex: mathrice-ci@gricad)"
type = string
}
variable FLAVOR_NAME {
description = "The instance flavor name to use to build the image (ex: m1.medium)"
type = string
}
variable SOURCE_IMAGE_URL {
description = "The source image url (ex: https://cloud-images.ubuntu.com/releases/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img)"
type = string
}
variable VOLUME_SIZE {
description = "The instance volume size (ex: 20)"
type = string
}
variable VOLUME_NAME {
description = "The instance volume name"
type = string
}
variable TARGET_IMAGE_BUILD_UUID {
description = "The target image build UUID (ex: 2e36711d-81fa-498f-975b-4669f814e886)"
type = string
}
variable SYSTEM_DISTRIBUTION_NAME {
description = "The target system distribution name (ex: ubuntu)"
type = string
}
variable SYSTEM_DISTRIBUTION_VERSION_NUMBER {
description = "The target system distribution version number (ex: 20.04)"
type = string
}
variable SYSTEM_DISTRIBUTION_VERSION_NAME {
description = "The target system distribution version name (ex: focal)"
type = string
}
variable SYSTEM_DISTRIBUTION_ARCH {
description = "The target system distribution arch (ex: amd64, arm64)"
type = string
}
variable TARGET_IMAGE_BUILD_TAG {
description = "The target image build tag (ex: plm)"
type = string
}
variable TARGET_IMAGE_BUILD_VERSION {
description = "The target image build version (ex: v1.0)"
type = string
}
variable TARGET_IMAGE_BUILD_OWNER {
description = "The target image build owner (ex: ci)"
type = string
}
variable TARGET_IMAGE_BUILD_ORGANIZATION {
description = "The target image build organization (ex: plmteam)"
type = string
}
variable TARGET_IMAGE_BUILD_YEAR {
description = "The target image build year (ex: 2021)"
type = string
}
variable TARGET_IMAGE_BUILD_MONTH {
description = "The target image build month (ex: 08)"
type = string
}
variable TARGET_IMAGE_BUILD_DAY {
description = "The target image build day (ex: 31)"
type = string
}
variable TARGET_IMAGE_BUILD_TIME {
description = "The target image build time (ex: 125959)"
type = string
}
variable TARGET_IMAGE_BUILD_DATETIME {
description = "The target image build datetime (ex: 20210831125959)"
type = string
}
variable BUILD_TOOL_NAME {
description = "The build tool name (ex: packer)"
type = string
default = "packer"
}
variable BUILD_TOOL_VERSION {
description = "The build tool version (ex: v1.7.4)"
type = string
}
variable SKIP_IMAGE_CREATION {
description = "Skip the image creation"
type = string
default = true
}
variable TARGET_IMAGE_FORMAT {
description = "the target image format (ex: raw)"
type = string
}
variable TARGET_IMAGE_NAME {
description = "The target image name"
type = string
}
variable TARGET_IMAGE_MANIFEST {
description = "The target image manifest"
type = string
default = "manifest.json"
}
variable FLOATING_IP_NETWORK {
description = "The floating ip network name (ex: dmz)"
type = string
}
variable NETWORK_DISCOVERY_CIDRS {
description = "The cidr on wich creating the instance (ex: 192.168.1.0/24)"
type = string
}
variable TARGET_SSH_USERNAME {
description = "The ssh username (ex: ubuntu)"
type = string
}
variable SET_IMAGE_METADATA {
type = bool
default = false
}
variable IMAGE_VISIBILITY {
type = string
default = "private"
}
variable IMAGE_MEMBERS {
type = list(string)
default = [ ]
}