- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with fme
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module provides types and providers for FME resources. The FME Server REST API is used.
The types provided by this module use the FME Server v2 REST API to configure various elements of the FME Server.
/etc/fme_api_settings.yaml
orC:\fme_api_settings.yaml
Before using any of the types, the /etc/fme_api_settings.yaml
file must first be created. This can be done using the fme::api_settings
class.
The providers all use rest-client. Rest-client can usually be installed with puppet. eg
package { 'rest-client':
ensure => 'installed',
provider => 'gem',
}
Declare the fme::api_settings class. After that, you can use any of the types offered by the module.
All the fme resource types use the API to query and update the server's configuration. Before using any of these types, declare the fme::api_settings class and this will generate the API settings file containing the API credentials to use.
All the types autorequire the settings file.
Here is a simple example with comments.
# Configure access to REST API
class { 'fme::api_settings':
username => 'admin',
password => 'password',
protocol => 'https',
port => 443,
}
# Create a user
fme_user { 'myuser':
fullname => 'My User',
password => 'topsecret',
}
# Create a repository
fme_repository { 'my_repo':
ensure => present,
}
# Upload a workspace to the repository
fme_repository_item { 'my_repo/item.fmw':
ensure => present,
source => '/path/to/item.fmw',
}
# Upload an FME resource
fme_resource { 'FME_SHAREDRESOURCE_DATA:/foo/my_resource.data':
ensure => file,
checksum => true,
source => '/path/to/my_resource.data',
}
# Modify an FME service for HTTPS
fme_service { 'fmedatadownload':
url => "https://${::fqdn}/fmedatadownload",
}
*fme::api_settings
: Creates an fme_api_settings.yaml file
Sets the API username. mandatory
Sets the API password. mandatory
Sets the FME Server to connect to. Default: 'localhost'.
Sets the TCP port of the FME Server API. Default: 80.
Sets the protocol to use. Valid options: 'http' or 'https'. Default: 'http'.
This is an early release with only a few types implemented.