You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Rene Moser <ma...@renemoser.net> on 2014/12/18 14:23:05 UTC
Ansible CloudStack modules
Hi
I recently created CloudStack modules [1] for Ansible [2],
You can find some examples in the README [1]. More modules are in the
queue. E.g. CloudStack facts module and a module for managing port
forwardings.
I created a GitHub Pull Request [3] to push them upstream.
I would appreciate feedback and testing :) If you have any questions
feel free to contact me.
Greetings
René
[1] https://github.com/resmo/ansible-cloudstack
[2] http://docs.ansible.com/
[3] - https://github.com/ansible/ansible-modules-extras/pull/121
- https://github.com/ansible/ansible/pull/9835
Re: Ansible CloudStack modules
Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
great job
thanks
2015-01-03 23:19 GMT+08:00 Rene Moser <ma...@renemoser.net>:
> Hi again
>
> On 12/18/2014 03:44 PM, Sebastien Goasguen wrote:
>
>> Thanks for Sharing René, I tested the VM one couple days ago and it works perfect.
>> I'd love to see one for key paris and secruitygroups.
>
> Security group management (group and rules) has been added, e.g.:
>
> - name: ensure security group default exist
> cloudstack_sg:
> name: default
>
> - name: add inbound SSH to security group default
> cloudstack_sg_rule:
> name: default
> start_port: 22
> end_port: 22
>
> I made a small example playbook [1] which installs yacy [2] from scratch
> on exoscale.
>
>
> [1] https://github.com/resmo/ansible-cloudstack-example
> [2] http://www.yacy.net/en/
>
>
>
--
白清杰 (Born Bai)
Mail: linuxbqj@gmail.com
Re: Ansible CloudStack modules
Posted by Rene Moser <ma...@renemoser.net>.
Hi again
On 12/18/2014 03:44 PM, Sebastien Goasguen wrote:
> Thanks for Sharing René, I tested the VM one couple days ago and it works perfect.
> I'd love to see one for key paris and secruitygroups.
Security group management (group and rules) has been added, e.g.:
- name: ensure security group default exist
cloudstack_sg:
name: default
- name: add inbound SSH to security group default
cloudstack_sg_rule:
name: default
start_port: 22
end_port: 22
I made a small example playbook [1] which installs yacy [2] from scratch
on exoscale.
[1] https://github.com/resmo/ansible-cloudstack-example
[2] http://www.yacy.net/en/
Re: Ansible CloudStack modules
Posted by Sebastien Goasguen <ru...@gmail.com>.
On Dec 19, 2014, at 3:32 AM, Rene Moser <ma...@renemoser.net> wrote:
> Hi Sebastien
>
> On 18.12.2014 15:44, Sebastien Goasguen wrote:
>
>> Thanks for Sharing René, I tested the VM one couple days ago and it works perfect.
>> I'd love to see one for key paris and secruitygroups.
>
> There is actually already a module for managing ssh keypairs [1].
>
of course, my bad :) just security groups then ...
> Example:
>
> # Upload your SSH public key
> - local_action:
> module: cloudstack_sshkey
> name: john@example.com
> public_key: '{{ lookup('file', '~./ssh/id_rsa.pub') }}'
>
> [1]
> https://github.com/resmo/ansible-cloudstack/blob/master/cloudstack_sshkey.py
Re: Ansible CloudStack modules
Posted by Rene Moser <ma...@renemoser.net>.
Hi Sebastien
On 18.12.2014 15:44, Sebastien Goasguen wrote:
> Thanks for Sharing René, I tested the VM one couple days ago and it works perfect.
> I'd love to see one for key paris and secruitygroups.
There is actually already a module for managing ssh keypairs [1].
Example:
# Upload your SSH public key
- local_action:
module: cloudstack_sshkey
name: john@example.com
public_key: '{{ lookup('file', '~./ssh/id_rsa.pub') }}'
[1]
https://github.com/resmo/ansible-cloudstack/blob/master/cloudstack_sshkey.py
Re: Ansible CloudStack modules
Posted by Sebastien Goasguen <ru...@gmail.com>.
On Dec 18, 2014, at 8:23 AM, Rene Moser <ma...@renemoser.net> wrote:
> Hi
>
> I recently created CloudStack modules [1] for Ansible [2],
>
> You can find some examples in the README [1]. More modules are in the
> queue. E.g. CloudStack facts module and a module for managing port
> forwardings.
>
> I created a GitHub Pull Request [3] to push them upstream.
>
> I would appreciate feedback and testing :) If you have any questions
> feel free to contact me.
Thanks for Sharing René, I tested the VM one couple days ago and it works perfect.
I'd love to see one for key paris and secruitygroups.
>
> Greetings
> René
>
>
> [1] https://github.com/resmo/ansible-cloudstack
> [2] http://docs.ansible.com/
> [3] - https://github.com/ansible/ansible-modules-extras/pull/121
> - https://github.com/ansible/ansible/pull/9835
>