def apply_manifest(manifest, stomp_host):
    puppet_root = "/home/ec2-user/puppet"
    command = "puppet apply --modulepath=%s/modules %s/manifests/%s.pp"
    with prefix("export FACTER_stomp_host=%s" % stomp_host):
        sudo(command % (puppet_root, puppet_root, manifest))
dataset/ETHPy150Open tomcz/aws_py/fabfile.py/apply_manifest/original