acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php on line 6131all-in-one-wp-migration domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php on line 6131rocket domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php on line 6131Packer<\/a> is an easy-to-use automation solution for creating any type of machine images. It embraces modern configuration management by allowing automated software installation and setup within Packer-built images.\u00a0UpCloud Packer builder integrates Packer with our Cloud Servers and makes creating private templates fast!<\/p>\r\n\r\n\r\n\r\n UpCloud Packer builder<\/a> is a plugin for Packer to simplify template configuration and make deploying custom Cloud Servers quick and easy.<\/p>\r\n\r\n\r\n\r\n Packer can be downloaded for most operating systems as well as installed using common package managers. To install the precompiled binary, you will need to download the appropriate package for your OS. On most popular Linux distributions, you can install Packer using your package manager after adding their repository.<\/p>\r\n\r\n\r\n\r\n The Packer builder leverages the UpCloud Go API to interface with the UpCloud API. You will need to provide a username and password with the access rights to the API functions to authenticate. We recommend setting up a new workspace member account with only the API privileges for security purposes. You can do this at your UpCloud Control Panel<\/a>. Learn more about creating API credentials at our guide for getting started with UpCloud API<\/a>.<\/p>\r\n\r\n\r\n\r\n Enter the API user credentials in your terminal with the following two commands. Replace the\u00a0username and\u00a0password with your user details.<\/p>\r\n\r\n\r\n\r\n You should also save these in your profile file to avoid having to repeat the export command every time you open a new terminal. Simply add the same lines to the ~\/.profile or ~\/.bashrc file.<\/p>\r\n\r\n\r\n\r\n <\/p>\r\n\r\n\r\n\r\n Packer uses the Hashicorp configuration language<\/a> (HCL) format for the configuration files to define the template you wish to build.<\/p>\r\n\r\n\r\n\r\n Here is a sample template, which you can also find on our Packer builder GitHub page in the examples\/<\/a> directory. It reads your UpCloud API credentials from the environment variables and creates an Ubuntu 20.04 LTS server in the nl-ams1 region.<\/p>\r\n\r\n\r\n\r\n Once deployed, Packer builds the template by following the provisioner instructions. In this example, Packer updates the server software and adds an SSH key to the root user before creating a custom image based on the Cloud Server installation.<\/p>\r\n\r\n\r\n\r\n You will need to provide a username and a password with the access rights to the API functions to authenticate. We recommend setting up a new Member account with only the API privileges for security purposes. You can do this at your UpCloud Control Panel<\/a> in the My Account menu under the User Accounts tab. Check out our getting started with the UpCloud API<\/a> tutorial to learn more.<\/p>\r\n\r\n\r\n\r\n Packer is a great way to standardise your cloud deployments and save time! If you are new to Packer, make sure to head over to our tutorial on how to create custom images using the UpCloud Packer builder<\/a>.<\/p>\r\n","protected":false},"featured_media":21687,"template":"","tools-category":[88],"class_list":["post-29280","tools","type-tools","status-publish","has-post-thumbnail","hentry","tools-category-system-imaging"],"acf":[],"_links":{"self":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tools\/29280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tools"}],"about":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/types\/tools"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/media\/21687"}],"wp:attachment":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/media?parent=29280"}],"wp:term":[{"taxonomy":"tools-category","embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tools-category?post=29280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Packer plugin<\/h5>\r\n\r\n\r\n\r\n
# Debian and Ubuntu\r\ncurl -fsSL https:\/\/apt.releases.hashicorp.com\/gpg | sudo apt-key add -\r\nsudo apt-add-repository \\\r\n\"deb [arch=amd64] https:\/\/apt.releases.hashicorp.com $(lsb_release -cs) main\"\r\nsudo apt-get update && sudo apt-get install packer<\/code><\/pre>\r\n\r\n\r\n\r\n# CentOS\r\nsudo yum install -y yum-utils\r\nsudo yum-config-manager --add-repo \\\r\nhttps:\/\/rpm.releases.hashicorp.com\/RHEL\/hashicorp.repo\r\nsudo yum -y install packer<\/code><\/pre>\r\n\r\n\r\n\r\nexport PKR_VAR_UPCLOUD_USERNAME=username\r\nexport PKR_VAR_UPCLOUD_PASSWORD=password<\/code><\/pre>\r\n\r\n\r\n\r\nConfiguring custom images<\/h5>\r\n
variable \"UPCLOUD_USERNAME\" {\r\n type = string\r\n default = \"\"\r\n}\r\nvariable \"UPCLOUD_PASSWORD\" {\r\n type = string\r\n sensitive = true\r\n default = \"\"\r\n}\r\npacker {\r\n required_plugins {\r\n upcloud = {\r\n version = \">=v1.0.0\"\r\n source = \"github.com\/UpCloudLtd\/upcloud\"\r\n }\r\n }\r\n}\r\n\r\nsource \"upcloud\" \"test\" {\r\n username = \"${var.UPCLOUD_USERNAME}\"\r\n password = \"${var.UPCLOUD_PASSWORD}\"\r\n zone = \"nl-ams1\"\r\n storage_name = \"ubuntu server 20.04\"\r\n template_prefix = \"ubuntu-server\"\r\n}\r\n\r\nbuild {\r\n sources = [\"source.upcloud.com\"]\r\n provisioner \"shell\" {\r\n inline = [\r\n \"apt-get update\",\r\n \"apt-get upgrade -y\",\r\n \"echo 'ssh-rsa-key' | tee \/root\/.ssh\/authorized_keys\"\r\n ]\r\n }\r\n}<\/code><\/pre>\r\n\r\n\r\n\r\nGetting started<\/h5>\r\n\r\n\r\n\r\n