This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 683 Bytes
class ec2init::ddns {
include ::ec2init::params
if $::ec2init::params::hostname and $::ec2init::params::aws_key and $::ec2init::params::aws_secret and $::ec2_public_hostname {
package {
ensure => present;
ensure => present,
require => Package['python-boto'];
exec { 'register dynamic dns hostname':
command => "/usr/bin/python /usr/sbin/ -k ${::ec2init::params::aws_key} -s ${::ec2init::params::aws_secret} ${::ec2init::params::hostname} ${::ec2_public_hostname}",
require => Package['ec2ddns'],