/usr/lib/python2.7/dist-packages/charmtools/templates/chef/files/cookbooks/juju-helpers/definitions/juju_port.rb is in charm-tools 2.1.2-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | define :juju_port, action: :nothing do
if params[:action] == :open
execute "open-port #{params[:name]}" do
action :run
end
elsif params[:action] == :close
execute "close-port #{params[:name]}" do
action :run
end
end
end
|