Skip to content

Instantly share code, notes, and snippets.

View sorenisanerd's full-sized avatar

Soren L. Hansen sorenisanerd

View GitHub Profile
Puppet::Type.type(:contrail_vgw).provide(
:provisioner
) do
# commands :provision_vgw => setCommand
# commands :provision_vgw => 'export PYTHONPATH=/usr/lib/python2.7/dist-packages/contrail_vrouter_api/gen_py/instance_service;/usr/sbin/contrail-provision-vgw-interface'
# commands :provision_vgw => '/usr/sbin/contrail-provision-vgw-interface'
# Stolen from Keystone provider
# the path to withenv changes between versions of puppet, so redefining this function here,