Using puppet for openvpn clients

122 views
Skip to first unread message

Derek Cole

unread,
Jan 28, 2014, 2:37:20 PM1/28/14
to puppet...@googlegroups.com
Hello,

I have a question about using puppet to distribute openvpn configs to clients that I am creating in cloudstack.

To create my cloudstack VMs, I have something similar to this:

        cloudstack_instance { 'myVM:
                ensure    => 'present',
                flavor    => 'Small Instance',
                zone      => 'myzone',
                image     => 'myimage',
                user_data => 'role=ovpnclient',

        }

What is the right pattern to follow to distribute my generated client openvpn configs to these instances? It seems like the luxflux openvpn module just generates the config. Should I just put them into a modules file folder, and then use puppet as a file server to push the file based on a role?

Has anyone else use puppet to distribute and start openvpn for client connections? I'd be interested in hearing what you did.

Thanks

-Derek
Reply all
Reply to author
Forward
0 new messages