kola/tests/coretest: migrate test config to Ignition
@@ -50,23 +50,29 @@ func init() {
"EtcdUpdateValue": TestEtcdUpdateValue,
"FleetctlRunService": TestFleetctlRunService,
},
- UserData: `#cloud-config
-
-coreos:
- etcd2:
- name: $name
- discovery: $discovery
- advertise-client-urls: http://$private_ipv4:2379
- initial-advertise-peer-urls: http://$private_ipv4:2380
- listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
- listen-peer-urls: http://$private_ipv4:2380,http://$private_ipv4:7001
- fleet:
- etcd-request-timeout: 15
- units:
- - name: etcd2.service
- command: start
- - name: fleet.service
- command: start`,
+ UserData: `{
+ "ignition": { "version": "2.0.0" },
+ "systemd": {
+ "units": [
+ {
+ "name": "etcd2.service",
+ "enable": true,
+ "dropins": [{
+ "name": "metadata.conf",
+ "contents": "[Unit]\nWants=coreos-metadata.service\nAfter=coreos-metadata.service\n\n[Service]\nEnvironmentFile=-/run/metadata/coreos\nExecStart=\nExecStart=/usr/bin/etcd2 --discovery=$discovery --advertise-client-urls=http://$private_ipv4:2379 --initial-advertise-peer-urls=http://$private_ipv4:2380 --listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001 --listen-peer-urls=http://$private_ipv4:2380,http://$private_ipv4:7001"
+ }]
+ },
+ {
+ "name": "fleet.service",
+ "enable": true,
+ "dropins": [{
+ "name": "environment.conf",
+ "contents": "[Service]\nEnvironment=FLEET_ETCD_REQUEST_TIMEOUT=15"
+ }]
+ }
+ ]
+ }
+}`,
})
// tests requiring network connection to internet
