The Fastly ipaddresslist plugin integrates RightScale Self-Service with the basic functionality of the Fastly Public Ip LIst.
- A general understanding CAT development and definitions
- Refer to the guide documentation for details SS Guides
- The
admin
,ss_designer
&ss_end_user
roles, in a RightScale account with SelfService enabled.admin
is needed to retrieved the RightScale Credential values identified below. - The following packages are also required (See the Installation section for details):
- Modify the plugin file itself and insert your wstunnel token in the resource_pool section.
- Navigate to the appropriate Self-Service portal
- For more details on using the portal review the SS User Interface Guide
- In the Design section, use the
Upload CAT
interface to complete the following:- Upload each of packages listed in the Requirements Section
- Upload the
fastly_ipaddress_plugin.rb
file located in this repository
The Plugin has been packaged as plugins/rs_rs_fastly_ipaddress
. To use this plugin you must import this plugin into a CAT.
import "sys_log"
import "plugins/rs_fastly_ipaddress"
For more information on using packages, please refer to the RightScale online documentation. Importing a Package
- public_ip_list
output "addresses" do
label "Host IPv4 Address"
category "Outputs"
default_value $address_list
end
operation "launch" do
label "Launch"
definition "gen_launch"
output_mappings do {
$addresses => $address_list
} end
end
define gen_launch() return @fastly,$address_list do
@fastly = rs_fastly_ipaddress.public_ip_list.show()
$address_list = to_s(@fastly.addresses)
end
Action | API Implementation | Support Level |
---|---|---|
show | https://api.fastly.com/public-ip-list | supported |
- "addresses" - list of fastly public ips
NONE
See test_fastly_ipaddress.cat.rb for an example declaration.
The source code is subject to the MIT license, see the LICENSE file.