Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 the original author or authors. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 16 | import org.yaml.snakeyaml.Yaml |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 17 | |
| 18 | ext { |
| 19 | |
| 20 | // Target registry to be used to publish docker images needed for deployment |
| 21 | targetReg = project.hasProperty('targetReg') ? project.getProperty('targetReg') : 'localhost:5000' |
| 22 | |
| 23 | // The tag used to tag the docker images push to the target registry |
| 24 | targetTag = project.hasProperty('targetTag') ? project.getProperty('targetTag') : 'candidate' |
| 25 | |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 26 | // Deployment target config file (yaml format); this can be overwritten from the command line |
| 27 | // using the -PdeployConfig=<file-path> syntax. |
| 28 | deployConfig = project.hasProperty('deployConfig') ? project.getProperty('deployConfig') : './config/default.yml' |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 29 | |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 30 | dockerPath = project.hasProperty('dockerPath') ? project.getProperty('dockerPath') : '/usr/bin' |
David K. Bainbridge | 6ea57c1 | 2016-06-06 23:29:12 -0700 | [diff] [blame] | 31 | |
| 32 | vboxUser = project.hasProperty('vboxUser') ? project.getProperty('vboxUser') : 'cord' |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 33 | } |
| 34 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 35 | // Switch Configuration Image |
| 36 | |
| 37 | task buildSwitchqImage(type: Exec) { |
| 38 | commandLine "$dockerPath/docker", 'build', '-t', 'cord-maas-switchq', './switchq' |
| 39 | } |
| 40 | |
| 41 | task tagSwitchqImage(type: Exec) { |
| 42 | dependsOn buildSwitchqImage |
| 43 | commandLine "$dockerPath/docker", 'tag', 'cord-maas-switchq', "$targetReg/cord-maas-switchq:$targetTag" |
| 44 | } |
| 45 | |
| 46 | task publishSwitchqImage(type: Exec) { |
| 47 | dependsOn tagSwitchqImage |
| 48 | commandLine "$dockerPath/docker", 'push', "$targetReg/cord-maas-switchq:$targetTag" |
| 49 | } |
| 50 | |
| 51 | // Bootstrap Image |
| 52 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 53 | task buildBootstrapImage(type: Exec) { |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 54 | commandLine "$dockerPath/docker", 'build', '-t', 'cord-maas-bootstrap', './bootstrap' |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 55 | } |
| 56 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 57 | task tagBootstrapImage(type: Exec) { |
| 58 | dependsOn buildBootstrapImage |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 59 | commandLine "$dockerPath/docker", 'tag', 'cord-maas-bootstrap', "$targetReg/cord-maas-bootstrap:$targetTag" |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 60 | } |
| 61 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 62 | task publishBootstrapImage(type: Exec) { |
| 63 | dependsOn tagBootstrapImage |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 64 | commandLine "$dockerPath/docker", 'push', "$targetReg/cord-maas-bootstrap:$targetTag" |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 65 | } |
| 66 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 67 | // IP Allocator Image |
| 68 | |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 69 | task buildAllocationImage(type: Exec) { |
David K. Bainbridge | f22dc06 | 2016-05-31 15:35:39 -0700 | [diff] [blame] | 70 | commandLine "$dockerPath/docker", 'build', '-t', 'cord-ip-allocator', './ip-allocator' |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | task tagAllocationImage(type: Exec) { |
David K. Bainbridge | f22dc06 | 2016-05-31 15:35:39 -0700 | [diff] [blame] | 74 | dependsOn buildAllocationImage |
| 75 | commandLine "$dockerPath/docker", 'tag', 'cord-ip-allocator', "$targetReg/cord-ip-allocator:$targetTag" |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | task publishAllocationImage(type: Exec) { |
David K. Bainbridge | f22dc06 | 2016-05-31 15:35:39 -0700 | [diff] [blame] | 79 | dependsOn tagAllocationImage |
| 80 | commandLine "$dockerPath/docker", 'push', "$targetReg/cord-ip-allocator:$targetTag" |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 81 | } |
| 82 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 83 | // Provisioner Image |
| 84 | |
David K. Bainbridge | f0da873 | 2016-06-01 16:15:37 -0700 | [diff] [blame] | 85 | task buildProvisionerImage(type: Exec) { |
David K. Bainbridge | d86d96d | 2016-06-01 17:28:46 -0700 | [diff] [blame] | 86 | commandLine "$dockerPath/docker", 'build', '-t', 'cord-provisioner', './provisioner' |
David K. Bainbridge | f0da873 | 2016-06-01 16:15:37 -0700 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | task tagProvisionerImage(type: Exec) { |
| 90 | dependsOn buildProvisionerImage |
| 91 | commandLine "$dockerPath/docker", 'tag', 'cord-provisioner', "$targetReg/cord-provisioner:$targetTag" |
| 92 | } |
| 93 | |
| 94 | task publishProvisionerImage(type: Exec) { |
| 95 | dependsOn tagProvisionerImage |
| 96 | commandLine "$dockerPath/docker", 'push', "$targetReg/cord-provisioner:$targetTag" |
| 97 | } |
| 98 | |
David K. Bainbridge | 9d1e02d | 2016-06-22 09:22:16 -0700 | [diff] [blame^] | 99 | // Automation Image |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 100 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 101 | task buildAutomationImage(type: Exec) { |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 102 | commandLine "$dockerPath/docker", 'build', '-t', "cord-maas-automation", "-f", "./automation/Dockerfile", "./automation" |
David K. Bainbridge | efa951d | 2016-05-26 10:54:25 -0700 | [diff] [blame] | 103 | } |
| 104 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 105 | task tagAutomationImage(type: Exec) { |
| 106 | dependsOn buildAutomationImage |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 107 | commandLine "$dockerPath/docker", 'tag', 'cord-maas-automation', "$targetReg/cord-maas-automation:$targetTag" |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 108 | } |
| 109 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 110 | task publishAutomationImage(type: Exec) { |
| 111 | dependsOn tagAutomationImage |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 112 | commandLine "$dockerPath/docker", 'push', "$targetReg/cord-maas-automation:$targetTag" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 113 | } |
| 114 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 115 | // DHCP Harvester Images |
| 116 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 117 | task buildHarvesterImage(type: Exec) { |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 118 | commandLine "$dockerPath/docker", 'build', '-t', "cord-dhcp-harvester", "./harvester" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | task tagHarvesterImage(type: Exec) { |
| 122 | dependsOn buildHarvesterImage |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 123 | commandLine "$dockerPath/docker", 'tag', 'cord-dhcp-harvester', "$targetReg/cord-dhcp-harvester:$targetTag" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 124 | } |
| 125 | |
| 126 | task publishHarvesterImage(type: Exec) { |
| 127 | dependsOn tagHarvesterImage |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 128 | commandLine "$dockerPath/docker", 'push', "$targetReg/cord-dhcp-harvester:$targetTag" |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | // ~~~~~~~~~~~~~~~~~~~ Global tasks ~~~~~~~~~~~~~~~~~~~~~~~ |
| 132 | |
| 133 | // To be used to fetch upstream binaries, clone repos, etc. |
| 134 | task fetch(type: Exec) { |
| 135 | // this is where we fetch upstream artifacts that we do not need internet for the build phase" |
| 136 | // Placeholdr example: |
David K. Bainbridge | 19b8d27 | 2016-05-26 21:20:43 -0700 | [diff] [blame] | 137 | commandLine "$dockerPath/docker", "pull", "golang:alpine" |
| 138 | commandLine "$dockerPath/docker", "pull", "python:2.7-alpine" |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | // To be used to generate all needed binaries that need to be present on the target |
| 142 | // as docker images in the local docker runner. |
| 143 | task buildImages { |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 144 | dependsOn buildBootstrapImage |
| 145 | dependsOn buildHarvesterImage |
David K. Bainbridge | 9d1e02d | 2016-06-22 09:22:16 -0700 | [diff] [blame^] | 146 | dependsOn buildAutomationImage |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 147 | dependsOn buildAllocationImage |
David K. Bainbridge | f0da873 | 2016-06-01 16:15:37 -0700 | [diff] [blame] | 148 | dependsOn buildProvisionerImage |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 149 | dependsOn buildSwitchqImage |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 150 | } |
| 151 | |
| 152 | task tagImages { |
| 153 | dependsOn tagBootstrapImage |
| 154 | dependsOn tagHarvesterImage |
David K. Bainbridge | 9d1e02d | 2016-06-22 09:22:16 -0700 | [diff] [blame^] | 155 | dependsOn tagAutomationImage |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 156 | dependsOn tagAllocationImage |
David K. Bainbridge | f0da873 | 2016-06-01 16:15:37 -0700 | [diff] [blame] | 157 | dependsOn tagProvisionerImage |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 158 | dependsOn tagSwitchqImage |
Zsolt Haraszti | 2a792f6 | 2016-05-12 17:49:02 -0700 | [diff] [blame] | 159 | } |
| 160 | |
| 161 | task publish { |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 162 | dependsOn publishBootstrapImage |
| 163 | dependsOn publishHarvesterImage |
David K. Bainbridge | 9d1e02d | 2016-06-22 09:22:16 -0700 | [diff] [blame^] | 164 | dependsOn publishAutomationImage |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 165 | dependsOn publishAllocationImage |
David K. Bainbridge | f0da873 | 2016-06-01 16:15:37 -0700 | [diff] [blame] | 166 | dependsOn publishProvisionerImage |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 167 | dependsOn publishSwitchqImage |
David K. Bainbridge | efa951d | 2016-05-26 10:54:25 -0700 | [diff] [blame] | 168 | } |
| 169 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 170 | // ~~~~~~~~~~~~~~~~~~~ Deployment / Test Tasks ~~~~~~~~~~~~~~~~~~~~~~~ |
| 171 | |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 172 | List.metaClass.asParam = { prefix, sep -> |
| 173 | if (delegate.size() == 0) { |
| 174 | "" |
| 175 | } |
| 176 | String result = "--" + prefix + "=" |
| 177 | String p = "" |
| 178 | delegate.each { |
| 179 | result += p + "${it}" |
| 180 | p = sep |
| 181 | } |
| 182 | result |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 183 | } |
| 184 | |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 185 | List.metaClass.p = { value, name -> |
| 186 | if (value != null && value != "") { |
| 187 | delegate << name + "=" + value |
| 188 | } else { |
| 189 | delegate |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | List.metaClass.p = { spec -> |
| 194 | if (spec != null && spec != "") { |
| 195 | delegate += spec |
| 196 | } else { |
| 197 | delegate |
| 198 | } |
| 199 | } |
| 200 | |
David K. Bainbridge | f418170 | 2016-06-17 14:44:03 -0700 | [diff] [blame] | 201 | task prime (type: Exec) { |
| 202 | println "Using deployment config: $deployConfig" |
| 203 | File configFile = new File(deployConfig) |
| 204 | def yaml = new Yaml() |
| 205 | def config = yaml.load(configFile.newReader()) |
| 206 | |
| 207 | executable = "ansible-playbook" |
| 208 | args = ["-i", config.seedServer.ip + ','] |
| 209 | |
| 210 | if ( config.seedServer.user != null && config.seedServer.user != "" ) { |
| 211 | args = args << "--user=$config.seedServer.user" |
| 212 | } |
| 213 | |
| 214 | def extraVars = [] |
| 215 | if (config.seedServer) { |
| 216 | extraVars = extraVars.p(config.seedServer.extraVars) |
| 217 | .p(config.seedServer.password, "ansible_ssh_pass") |
| 218 | .p(config.seedServer.sudoPassword, "ansible_sudo_pass") |
| 219 | .p(config.seedServer.fabric_ip, "fabric_ip") |
| 220 | .p(config.seedServer.management_ip, "management_ip") |
| 221 | .p(config.seedServer.management_network, "management_network") |
| 222 | .p(config.seedServer.management_iface, "management_iface") |
| 223 | .p(config.seedServer.external_ip, "external_ip") |
| 224 | .p(config.seedServer.external_network, "external_network") |
| 225 | .p(config.seedServer.external_iface, "external_iface") |
| 226 | .p(config.seedServer.fabric_ip, "fabric_ip") |
| 227 | .p(config.seedServer.fabric_network, "fabric_network") |
| 228 | .p(config.seedServer.fabric_iface, "fabric_iface") |
| 229 | .p(config.seedServer.domain, "domain") |
| 230 | } |
| 231 | |
David K. Bainbridge | 9d1e02d | 2016-06-22 09:22:16 -0700 | [diff] [blame^] | 232 | if (config.seedServer.port) { |
| 233 | extraVars = extraVars.p(config.seedServer.port, "ansible_ssh_port") |
| 234 | } |
| 235 | |
David K. Bainbridge | f418170 | 2016-06-17 14:44:03 -0700 | [diff] [blame] | 236 | if (vboxUser != "") { |
| 237 | extraVars = extraVars.p(vboxUser, "power_helper_user") |
| 238 | } |
| 239 | |
| 240 | if (config.otherServers) { |
| 241 | extraVars = extraVars.p(config.otherServers.location, "prov_location") |
| 242 | .p(config.otherServers.rolesPath, "prov_role_path") |
| 243 | .p(config.otherServers.role, "prov_role") |
| 244 | } |
| 245 | |
| 246 | if (config.docker) { |
| 247 | extraVars = extraVars.p(config.docker.registry, "docker_registry") |
| 248 | .p(config.docker.imageVersion, "docker_image_version") |
| 249 | } |
| 250 | |
| 251 | def skipTags = [].p(config.seedServer.skipTags) |
| 252 | |
| 253 | args = args.p(skipTags.asParam("skip-tags", ",")).p(extraVars.asParam("extra-vars", " ")) << "prime-node.yml" |
| 254 | } |
| 255 | |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 256 | task deploy (type: Exec) { |
| 257 | println "Using deployment config: $deployConfig" |
| 258 | File configFile = new File(deployConfig) |
| 259 | def yaml = new Yaml() |
| 260 | def config = yaml.load(configFile.newReader()) |
| 261 | |
| 262 | executable = "ansible-playbook" |
David K. Bainbridge | 13c765c | 2016-05-26 11:24:22 -0700 | [diff] [blame] | 263 | args = ["-i", config.seedServer.ip + ','] |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 264 | |
David K. Bainbridge | 13c765c | 2016-05-26 11:24:22 -0700 | [diff] [blame] | 265 | if ( config.seedServer.user != null && config.seedServer.user != "" ) { |
| 266 | args = args << "--user=$config.seedServer.user" |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 267 | } |
| 268 | |
| 269 | def extraVars = [] |
David K. Bainbridge | 13c765c | 2016-05-26 11:24:22 -0700 | [diff] [blame] | 270 | if (config.seedServer) { |
| 271 | extraVars = extraVars.p(config.seedServer.extraVars) |
| 272 | .p(config.seedServer.password, "ansible_ssh_pass") |
| 273 | .p(config.seedServer.sudoPassword, "ansible_sudo_pass") |
| 274 | .p(config.seedServer.fabric_ip, "fabric_ip") |
| 275 | .p(config.seedServer.management_ip, "management_ip") |
David K. Bainbridge | c82a446 | 2016-06-14 12:39:01 -0700 | [diff] [blame] | 276 | .p(config.seedServer.management_network, "management_network") |
| 277 | .p(config.seedServer.management_iface, "management_iface") |
David K. Bainbridge | 13c765c | 2016-05-26 11:24:22 -0700 | [diff] [blame] | 278 | .p(config.seedServer.external_ip, "external_ip") |
David K. Bainbridge | c82a446 | 2016-06-14 12:39:01 -0700 | [diff] [blame] | 279 | .p(config.seedServer.external_network, "external_network") |
| 280 | .p(config.seedServer.external_iface, "external_iface") |
| 281 | .p(config.seedServer.fabric_ip, "fabric_ip") |
| 282 | .p(config.seedServer.fabric_network, "fabric_network") |
| 283 | .p(config.seedServer.fabric_iface, "fabric_iface") |
| 284 | .p(config.seedServer.domain, "domain") |
| 285 | .p(config.seedServer.power_helper_user, "power_helper_user") |
| 286 | .p(config.seedServer.power_helper_host, "power_helper_host") |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 287 | } |
| 288 | |
David K. Bainbridge | 9d1e02d | 2016-06-22 09:22:16 -0700 | [diff] [blame^] | 289 | if (config.seedServer.port) { |
| 290 | extraVars = extraVars.p(config.seedServer.port, "ansible_ssh_port") |
| 291 | } |
| 292 | |
David K. Bainbridge | 6ea57c1 | 2016-06-06 23:29:12 -0700 | [diff] [blame] | 293 | if (vboxUser != "") { |
| 294 | extraVars = extraVars.p(vboxUser, "power_helper_user") |
| 295 | } |
| 296 | |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 297 | if (config.otherServers) { |
| 298 | extraVars = extraVars.p(config.otherServers.location, "prov_location") |
| 299 | .p(config.otherServers.rolesPath, "prov_role_path") |
| 300 | .p(config.otherServers.role, "prov_role") |
| 301 | } |
| 302 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 303 | if (config.docker) { |
| 304 | extraVars = extraVars.p(config.docker.registry, "docker_registry") |
| 305 | .p(config.docker.imageVersion, "docker_image_version") |
| 306 | } |
| 307 | |
David K. Bainbridge | 13c765c | 2016-05-26 11:24:22 -0700 | [diff] [blame] | 308 | def skipTags = [].p(config.seedServer.skipTags) |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 309 | |
| 310 | args = args.p(skipTags.asParam("skip-tags", ",")).p(extraVars.asParam("extra-vars", " ")) << "head-node.yml" |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 311 | } |