From 72238889c3ca014fc6222195d0d38641cf257bc3 Mon Sep 17 00:00:00 2001 From: Nicholas Kuechler Date: Tue, 23 Jul 2013 22:49:17 -0500 Subject: [PATCH 1/6] Update docs and example for injecting files. --- library/cloud/rax | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/cloud/rax b/library/cloud/rax index 1fbe98e00e..c7c9933f5d 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -59,7 +59,7 @@ options: aliases: ['keypair'] files: description: - - Files to insert into the instance. remotefilename:localcontent + - Files to insert into the instance. [remotefilename=localcontent] default: null region: description: @@ -91,6 +91,7 @@ EXAMPLES = ''' name: rax-test1 flavor: 5 image: b11d9567-e412-4255-96b9-bd63ab23bcfe + files: [/root/.ssh/authorized_keys=/home/username/.ssh/id_rsa.pub] wait: yes state: present ''' From b8edbd0c0e484e13f7acad18205b093fc0a4a5c5 Mon Sep 17 00:00:00 2001 From: Nicholas Kuechler Date: Tue, 23 Jul 2013 23:09:02 -0500 Subject: [PATCH 2/6] Add example with multiple files. --- library/cloud/rax | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/cloud/rax b/library/cloud/rax index c7c9933f5d..e483834c70 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -59,7 +59,7 @@ options: aliases: ['keypair'] files: description: - - Files to insert into the instance. [remotefilename=localcontent] + - Files to insert into the instance. remotefilename=localcontent default: null region: description: @@ -91,7 +91,8 @@ EXAMPLES = ''' name: rax-test1 flavor: 5 image: b11d9567-e412-4255-96b9-bd63ab23bcfe - files: [/root/.ssh/authorized_keys=/home/username/.ssh/id_rsa.pub] + files: [/root/.ssh/authorized_keys=/home/username/.ssh/id_rsa.pub, + /root/test.txt=/home/username/test.txt] wait: yes state: present ''' From e4d0c7b0ce56a0f4e5bdad55da2bd32ecd11a1f9 Mon Sep 17 00:00:00 2001 From: Nicholas Kuechler Date: Sat, 27 Jul 2013 13:33:30 -0500 Subject: [PATCH 3/6] Update example to be more yaml friendly --- library/cloud/rax | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/cloud/rax b/library/cloud/rax index e483834c70..31d32e7b74 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -91,8 +91,9 @@ EXAMPLES = ''' name: rax-test1 flavor: 5 image: b11d9567-e412-4255-96b9-bd63ab23bcfe - files: [/root/.ssh/authorized_keys=/home/username/.ssh/id_rsa.pub, - /root/test.txt=/home/username/test.txt] + files: + - /root/.ssh/authorized_keys=/home/localuser/.ssh/id_rsa.pub + - /root/test.txt=/home/localuser/test.txt] wait: yes state: present ''' From cac79faf35e7382708d5df00e32c0cae7d7f05ef Mon Sep 17 00:00:00 2001 From: Nicholas Kuechler Date: Tue, 30 Jul 2013 18:01:34 -0500 Subject: [PATCH 4/6] Remove tailing bracket --- library/cloud/rax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/rax b/library/cloud/rax index 31d32e7b74..4dec686da4 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -93,7 +93,7 @@ EXAMPLES = ''' image: b11d9567-e412-4255-96b9-bd63ab23bcfe files: - /root/.ssh/authorized_keys=/home/localuser/.ssh/id_rsa.pub - - /root/test.txt=/home/localuser/test.txt] + - /root/test.txt=/home/localuser/test.txt wait: yes state: present ''' From 2167be8fe9f693a38fe508ce256e46f1b9f97e15 Mon Sep 17 00:00:00 2001 From: Nicholas Kuechler Date: Tue, 30 Jul 2013 20:07:20 -0500 Subject: [PATCH 5/6] Fixed a problem on my side. Was doing weird things. --- library/cloud/rax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cloud/rax b/library/cloud/rax index 4dec686da4..41f610bd81 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -92,8 +92,8 @@ EXAMPLES = ''' flavor: 5 image: b11d9567-e412-4255-96b9-bd63ab23bcfe files: - - /root/.ssh/authorized_keys=/home/localuser/.ssh/id_rsa.pub - - /root/test.txt=/home/localuser/test.txt + /root/.ssh/authorized_keys: /home/localuser/.ssh/id_rsa.pub + /root/test.txt: /home/localuser/test.txt wait: yes state: present ''' From fcb2295847e2f5d61bbd6160013a03e871c1b7b4 Mon Sep 17 00:00:00 2001 From: Nicholas Kuechler Date: Tue, 30 Jul 2013 20:08:22 -0500 Subject: [PATCH 6/6] Change equals to colon --- library/cloud/rax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/rax b/library/cloud/rax index 41f610bd81..2b38c54640 100644 --- a/library/cloud/rax +++ b/library/cloud/rax @@ -59,7 +59,7 @@ options: aliases: ['keypair'] files: description: - - Files to insert into the instance. remotefilename=localcontent + - Files to insert into the instance. remotefilename:localcontent default: null region: description: