Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-16 Thread Shanil S
Hi Juan, Yes, the above script is working fine. -- Regards Shanil On Tue, Sep 16, 2014 at 7:49 PM, Juan Hernandez wrote: > On 09/12/2014 07:04 AM, Shanil S wrote: > > Hi Juan, > > > > I tried the following > > > > > > > > > > > > ... > > > > > >

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-16 Thread Juan Hernandez
On 09/12/2014 07:04 AM, Shanil S wrote: > Hi Juan, > > I tried the following > > > > > > ... > > > ignored > > plaintext > > > > > plaintext > > > >

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-11 Thread Shanil S
Hi Juan, I tried the following ... ignored plaintext plaintext write_files: -content: | Some Content for my file path: /tmp/myfil

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-11 Thread Juan Hernandez
On 09/11/2014 12:51 PM, Shanil S wrote: > Hi Juan, > > Also, i tried the following custom script from the ovirt panel and its > working > > #cloud-config > write_files: > -content: | > # THIS IS MY TEXT FILE > Some Content for my file > path: /tmp/myfile > permissions:

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-11 Thread Shanil S
Hi Juan, Also, i tried the following custom script from the ovirt panel and its working #cloud-config write_files: -content: | # THIS IS MY TEXT FILE Some Content for my file path: /tmp/myfile permissions: '0644' but the same content script i tried from the ovir api

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-11 Thread Shanil S
Hi Juan, Okay sure.. The following xml i used test2 root test virtio eth0 n

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-11 Thread Juan Hernandez
On 09/11/2014 06:54 AM, Shanil S wrote: > Hi Juan, > > It seems the it doesn't contains the "phone_home " section in the cat > /mnt/openstack/latest/user_data > > the following is the output > > #cloud-config > ssh_pwauth: true > disable_root: 0 > output: > all: '>> /var/log/cloud-init-output

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-10 Thread Shanil S
Hi Juan, It seems the it doesn't contains the "phone_home " section in the cat /mnt/openstack/latest/user_data the following is the output #cloud-config ssh_pwauth: true disable_root: 0 output: all: '>> /var/log/cloud-init-output.log' user: root password: admin123 chpasswd: expire: false ru

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-10 Thread Juan Hernandez
On 09/10/2014 06:44 AM, Shanil S wrote: > Hi Juan, > > What i am planning to do is to make work the following script > > #cloud-config > > # phone_home: if this dictionary is present, then the phone_home > # cloud-config module will post specified data back to the given > # url > # default: none

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-09 Thread Shanil S
Hi Juan, What i am planning to do is to make work the following script #cloud-config # phone_home: if this dictionary is present, then the phone_home # cloud-config module will post specified data back to the given # url # default: none # phone_home: # url: http://my.foo.bar/$INSTANCE/ # post:

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-09 Thread Shanil S
Hi Juan, Okay.. Thanks.. its working. I would like to execute other page something like test_script.php by posting some values to it using the cloud init, Is it possible to do it ? -- Regards Shanil On Fri, Sep 5, 2014 at 10:08 PM, Juan Hernandez wrote: > On 09/05/2014 12:55 PM, Shanil S w

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-05 Thread Juan Hernandez
On 09/05/2014 12:55 PM, Shanil S wrote: > Hi Juan, > > Thanks for your reply. > > I tried with the above but i was unable to find the 'iwashere.txt' after > executing the above xml. > I repeated the test, this time with 3.4, and it worked fine for me. As the formatting of the XML is very import

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-05 Thread Shanil S
Hi Juan, Thanks for your reply. I tried with the above but i was unable to find the 'iwashere.txt' after executing the above xml. -- Regards Shanil On Fri, Sep 5, 2014 at 3:00 PM, Juan Hernandez wrote: > On 09/05/2014 10:46 AM, Sven Kieske wrote: > > > > > > Am 05.09.2014 10:27, schrieb Jua

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-05 Thread Juan Hernandez
On 09/05/2014 10:46 AM, Sven Kieske wrote: > > > Am 05.09.2014 10:27, schrieb Juan Hernandez: >> Trying to make an example for this I discovered that the "custom_script" >> element is currently ignored if the "cloud_init" element is present. >> Instead we are taking the content of the first "file

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-05 Thread Sven Kieske
Am 05.09.2014 10:27, schrieb Juan Hernandez: > Trying to make an example for this I discovered that the "custom_script" > element is currently ignored if the "cloud_init" element is present. > Instead we are taking the content of the first "file" element from the > "cloud_init" element and append

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-05 Thread Juan Hernandez
On 09/04/2014 11:59 AM, Shanil S wrote: > Hi Juan, > > I tried with the above touch command but it seems the 'iwashere' file > isn't created after executing it the above command. > Trying to make an example for this I discovered that the "custom_script" element is currently ignored if the "cloud_

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-04 Thread Shanil S
Hi Juan, I tried with the above touch command but it seems the 'iwashere' file isn't created after executing it the above command. -- Regards Shanil On Thu, Sep 4, 2014 at 3:02 PM, Juan Hernandez wrote: > On 09/04/2014 10:58 AM, Shanil S wrote: > > Hi Juan, > > > > Okay.. Thanks for your upd

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-04 Thread Juan Hernandez
On 09/04/2014 10:58 AM, Shanil S wrote: > Hi Juan, > > Okay.. Thanks for your update. Also i found some sample cloud init > scripts from here > https://github.com/number5/cloud-init/tree/master/doc/examples and i > tried the following scripts > > - type: foo/wark > filename: bar > content: | > Th

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-04 Thread Shanil S
Hi Juan, Okay.. Thanks for your update. Also i found some sample cloud init scripts from here https://github.com/number5/cloud-init/tree/master/doc/examples and i tried the following scripts - type: foo/wark filename: bar content: | This is my payload hello - this is also payload - | multi line p

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-04 Thread Juan Hernandez
On 09/04/2014 06:29 AM, Shanil S wrote: > Hi Juan, > > Is there anyways to specify the custom script from a file in the xml ? > ie, i have a script in a file called script.sh and i would like to > include this script in the xml with the api call. Is there any methods > for this ? > You can deplo

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-03 Thread Shanil S
Hi Juan, Is there anyways to specify the custom script from a file in the xml ? ie, i have a script in a file called script.sh and i would like to include this script in the xml with the api call. Is there any methods for this ? -- Regards Shanil On Tue, Sep 2, 2014 at 3:02 PM, Shanil S wrote

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-02 Thread Shanil S
Hi Juan, Thanks for the solution. -- Regards Shanil On Tue, Sep 2, 2014 at 2:59 PM, Juan Hernandez wrote: > On 09/02/2014 05:46 AM, Shanil S wrote: > > Hi All, > > > > From the ovirt admin panel, there is an option to give the custom script > > in the cloud init ( Run Once-> cloud init- > Cu

Re: [ovirt-users] Passing custom script to cloud init using api

2014-09-02 Thread Juan Hernandez
On 09/02/2014 05:46 AM, Shanil S wrote: > Hi All, > > From the ovirt admin panel, there is an option to give the custom script > in the cloud init ( Run Once-> cloud init- > Custom script ). Is there > any ways to pass the custom script to cloud init using the rest api ? > The custom script shou

[ovirt-users] Passing custom script to cloud init using api

2014-09-01 Thread Shanil S
Hi All, >From the ovirt admin panel, there is an option to give the custom script in the cloud init ( Run Once-> cloud init- > Custom script ). Is there any ways to pass the custom script to cloud init using the rest api ? -- Regards Shanil ___ Users m