Name: flavor-machine-driver
Owner: Rancher
Description: null
Created: 2017-02-07 22:13:31.0
Updated: 2017-05-08 19:10:06.0
Pushed: 2017-05-08 20:56:01.0
Homepage: null
Size: 622
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A Docker Machine driver for adding hosts in based off of pre-defined flavors.
make
The driver is configured through two directories containing YAML configuration files.
Configures Docker Machine fields for providers. An example might be to set the SSH user or userdata fields for a provider. The primary use case for this is to set fields that will be common to all flavor types for a provider. The location of this directory is set by the PROVIDERS_DIR
environment variable.
An individual provider config is just a map of Docker Machine fields. One for Digital Ocean might look like the following (with filename digitalocean.yml
).
talocean-ssh-user: rancher
Configures Docker Machine fields for a particular flavor type. The flavor configurations end up being presented to the user via the rancher-flavor
Docker Machine field. The primary use case for this is to configure the list of flavors that are available for a user to choose when adding hosts. The location of this directory is set by the FLAVORS_DIR
environment variable.
A flavor for Digital Ocean might look like the following.
ider: digitalocean
er_options:
gitalocean-image: ubuntu-16-04-x64
The provider
key corresponds to the filename of a provider config, digitalocean.yml
in this case. Everything under driver_options
are Docker Machine fields.
If a field is present in the configuration from both the flavors directory and the providers directory then preference is given to the field from the flavor configuration.
Copyright (c) 2014-2016 Rancher Labs, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.