exec {"wget http://repos.fedorapeople.org/repos/pulp/pulp/fedora-pulp.repo":
        creates => "/etc/yum.repos.d/fedora-pulp.repo",
        cwd => "/etc/yum.repos.d",
        path => "/usr/bin"
}

file {"/etc/yum.repos.d/fedora-pulp.repo":
}

augeas {"fedora-pulp.repo":
        context => "/files/etc/yum.repos.d/fedora-updates-testing.repo/updates-testing",
        changes => ["set enabled 1"],
        require => File["/etc/yum.repos.d/fedora-pulp.repo"]
}

package {"pulp":
    ensure => installed,
}

exec {"initpulp":
        command => "service pulp-server init",
        creates => "/var/lib/pulp/init.flag"
        path => "/sbin",
        subscribe => Package[pulp]
}

service {"pulp-server":
        ensure => running,
        enable => true,
        hasstatus => true,
        require => Exec["initpulp"]
}

service {"httpd":
        ensure => running,
        enable => true,
        hasstatus => true,
        require => Exec["initpulp"]
}
