1
0
mirror of https://github.com/rancher/os.git synced 2025-09-03 07:44:21 +00:00

Early cloud-init

This commit is contained in:
Josh Curl
2016-11-09 11:08:30 -08:00
parent 72f7f9a572
commit 13b34a6668
18 changed files with 312 additions and 249 deletions

20
tests/cloud_init_test.go Normal file
View File

@@ -0,0 +1,20 @@
package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestReadDatasourcesFromDisk(c *C) {
s.RunQemu(c)
s.CheckCall(c, `
sudo tee /var/lib/rancher/conf/cloud-config.d/datasources.yml << EOF
rancher:
cloud_init:
datasources:
- url:https://gist.githubusercontent.com/joshwget/e1c49f8b1ddeeba01bc9d0a3be01ed60/raw/9168b380fde182d53acea487d49b680648a0ca5b/gistfile1.txt
EOF
`)
s.Reboot(c)
s.CheckCall(c, "sudo ros config get rancher.log | grep true")
}