1&1 is one of the world’s leading Web hosting providers. 1&1 currently offers a wide range of Web hosting products, including email solutions and high-end servers in 10 different countries including Germany, Spain, Great Britain and the United States. From domains to 1&1 MyWebsite to eBusiness solutions like Cloud Hosting and Web servers for complex tasks, 1&1 is well placed to deliver a high quality service to its customers. All 1&1 products are hosted in 1&1‘s high-performance, green data centers in the USA and Europe.
1and1 >= 1.2.0
Using the new format, set up the cloud configuration at
my-oneandone-config: driver: oneandone # Set the location of the salt-master # minion: master: saltmaster.example.com # Configure oneandone authentication credentials # api_token: <api_token> ssh_private_key: /path/to/id_rsa ssh_public_key: /path/to/id_rsa.pub
api_key is used for API authorization. This token can be obtained
from the CloudPanel in the Management section below Users.
Here is an example of a profile:
oneandone_fixed_size: provider: my-oneandone-config description: Small instance size server fixed_instance_size: S appliance_id: 8E3BAA98E3DFD37857810E0288DD8FBA oneandone_custom_size: provider: my-oneandone-config description: Custom size server vcore: 2 cores_per_processor: 2 ram: 8 appliance_id: 8E3BAA98E3DFD37857810E0288DD8FBA hdds: - is_main: true size: 20 - is_main: false size: 20
The following list explains some of the important properties.
When creating a server, either
fixed_instance_size_id or custom hardware params
hdds must be provided.
Can be one of the IDs listed among the output of the following command:
salt-cloud --list-sizes oneandone
Total amount of processors.
Number of cores per processor.
RAM memory size in GB.
ID of the image that will be installed on server. Can be one of the IDs listed in the output of the following command:
salt-cloud --list-images oneandone
ID of the datacenter where the server will be created. Can be one of the IDs listed in the output of the following command:
salt-cloud --list-locations oneandone
Description of the server.
Password of the server. Password must contain more than 8 characters using uppercase letters, numbers and other special symbols.
Power on server after creation. Default is set to true.
Firewall policy ID. If it is not provided, the server will assign the best firewall policy, creating a new one if necessary. If the parameter is sent with a 0 value, the server will be created with all ports blocked.
IP address ID.
Load balancer ID.
Monitoring policy ID.
Set to False if Salt should not be installed on the node.
The timeout to wait in seconds for provisioning resources such as servers. The default wait_for_timeout is 15 minutes.
List of public key IDs (ssh key).
Create an SSH key
sudo salt-cloud -f create_ssh_key my-oneandone-config name='SaltTest' description='SaltTestDescription'
Create a block storage
sudo salt-cloud -f create_block_storage my-oneandone-config name='SaltTest2' description='SaltTestDescription' size=50 datacenter_id='5091F6D8CBFEF9C26ACE957C652D5D49'
For more information concerning cloud profiles, see here.