Skip to content

Commit

Permalink
Fix styling issues and prepare 5.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed Mar 24, 2016
1 parent a4cf280 commit 5646a95
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 44 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## 5.3 - 2016-03-24
- New released feature in `5.3`:
- install an operating system unattended on a VPS

## 5.2 - 2016-03-24
- Namespace change from `HiddeCo\TransIP` -> `TransIP`
- Version number is from now on equal to the version number of the API (`5.2` for this release)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ including extensive documentation.
To use this library without running in to trouble you will need PHP 5.4+ or HHVM 3.6+ and Composer.

1. Get the latest version of TransIP by adding the following line to your `composer.json` file
`"hiddeco/transip": "5.2"`
`"hiddeco/transip": "5.3"`

2. Run `composer update` or `composer install`

Expand Down
77 changes: 35 additions & 42 deletions doc/vps.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,48 +175,41 @@ $client->vps()->getOperatingSystems();
$client->vps()->installOperatingSystem('fooVps', 'ubuntu-14.04-transip', 'baymax.foo.com');
````

#### Install an operating system Unattended on a VPS.
````php
try {
$base64InstallText = base64_encode('
## Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string mirror.transip.net
d-i mirror/http/directory string /debian/debian

## Automatically choose keymapping, since VNC client will translate to the clients one
d-i keymap select us

## Automatically select the networking interface
d-i netcfg/choose_interface select auto

## Install ACPId so the machine is responsive to Ctrl+Alt+Del etc
d-i pkgsel/include string acpid

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string test-vps
d-i netcfg/get_domain string example.com

# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Amsterdam

# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
');

$client->vps()->installOperatingSystemUnattended('fooVps','debian-8',$base64InstallText);
echo 'Operating system install in progress';
} catch (SoapFault $f) {
// It is possible that an error occurs when connecting to the TransIP Soap API,
// those errors will be thrown as a SoapFault exception.
echo 'An error occurred: ' . $f->getMessage(), PHP_EOL;
}
#### Install an operating system unattended on a VPS.
````php
$base64InstallText = base64_encode('
## Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string mirror.transip.net
d-i mirror/http/directory string /debian/debian

## Automatically choose key mapping, since VNC client will translate to the clients one
d-i keymap select us

## Automatically select the networking interface
d-i netcfg/choose_interface select auto

## Install ACPId so the machine is responsive to Ctrl+Alt+Del etc
d-i pkgsel/include string acpid

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string test-vps
d-i netcfg/get_domain string example.com

# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Amsterdam

# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
');

$client->vps()->installOperatingSystemUnattended('fooVps', 'debian-8', $base64InstallText);
````

#### Get IP addresses for a VPS.
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Vps.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function installOperatingSystem($vpsName, $operatingSystemName, $hostname
}

/**
* Install an operating system on a vps with a unattended installfile.
* Install an operating system on a vps with a unattended install file.
*
* @param string $vpsName The name of the VPS
* @param string $operatingSystemName The name of the operating to install
Expand Down

0 comments on commit 5646a95

Please sign in to comment.