InfraKit plugins for creating and managing resources in SakuraCloud.
This project is still under development
An InfraKit instance plugin which creates SakuraCloud servers.
To build the instance plugin, run make build or make docker-build. The plugin binary
will be located at ./build/infrakit-instance-sakuracloud.
${PATH_TO_INFRAKIT}/infrakit-flavor-vanilla
${PATH_TO_INFRAKIT}/infrakit-group-default
./build/infrakit-instance-sakuracloud --token=[YOUR API TOEKN] --secret=[YOUR API SECRET] --zone=[TARGET ZONE]
${PATH_TO_INFRAKIT}/infrakit group commit sakuracloud-exemple01.json
NOTE: Following parameters are able to also set by environment variable.
| Parameter | Environment Variable |
|---|---|
--token |
SAKURACLOUD_ACCESS_TOKEN |
--secret |
SAKURACLOUD_ACCESS_TOKEN_SECRET |
--zone |
SAKURACLOUD_ZONE |
{
"ID": "instances",
"Properties": {
"Allocation": {
"Size": 2
},
"Instance": {
"Plugin": "instance-sakuracloud",
"Properties": {
"NamePrefix": "infrakit-sakuracloud",
"Tags": ["ci-infrakit-sakuracloud"],
"OSType": "centos",
"SSHKeyPublicKeyFiles": ["/infrakit/id_rsa.pub"],
"DisablePasswordAuth": true
}
},
"Flavor": {
"Plugin": "flavor-vanilla",
"Properties": {
"Init": [
"sh -c \"echo 'Hello, World' > /hello\""
]
}
}
}
}Following parameters are available.
NamePrefixCore: (default: 1)Memory: GB(default: 1)DiskMode: [createorconnectordiskless]OSType: see OSType valuesDiskPlan: [ssdorhdd]DiskConnection: [virtiooride]DiskSize: GB(default: 20)SourceArchiveIDSourceDiskIDDistantFromDiskIDISOImageIDUseNicVirtIO: (default: true)PacketFilterIDHostnamePasswordDisablePasswordAuth: (default: false)NetworkMode: [sharedorswitchordisconnectornone](default: shared)SwitchIDIPAddressNwMasklenDefaultRouteStartupScriptsStartupScriptIDsStartupScriptsEphemeral: (default: true)SSHKeyIDsSSHKeyPublicKeysSSHKeyPublicKeyFilesSSHKeyEphemeral: (default: true)NameTagsIconIDUsKeyboard: (default: false)
| value | Public Archive |
|---|---|
centos |
CentOS 7 |
ubuntu |
Ubuntu 16.04 |
debian |
Debian |
vyos |
VyOS |
coreos |
CoreOS |
rancheros |
RancherOS |
kusanagi |
Kusanagi(CentOS7) |
site-guard |
SiteGuard(CentOS7) |
plesk |
Plesk(CentOS7) |
freebsd |
FreeBSD |
infrakit-instance-sakuracloud Copyright (C) 2017-2019 Kazumichi Yamamoto.
This project is published under Apache 2.0 License.
- Kazumichi Yamamoto (@yamamoto-febc)