Skip to content

Instantly share code, notes, and snippets.

View tokida's full-sized avatar

Hideaki Tokida tokida

View GitHub Profile
@hostmaster
hostmaster / playbook.yml
Created January 12, 2014 14:55
ansible playbook choose APT or YUM for package installation
- name: Install wget package (Debian based)
  action: apt pkg='wget' state=installed
  only_if: "'$ansible_pkg_mgr' == 'apt'"
 
- name: Install wget package (RedHat based)
  action: yum name='wget' state=installed
  only_if: "'$ansible_pkg_mgr' == 'yum'"
{
"parameters": [
{
"id": 1234,
"virtualServers": [
{
"virtualIpAddressId": 1234,
"port": 80,
"allocation": 100,
"serviceGroups": [
<?php
include('softlayer-api-php-client/SoftLayer/SoapClient.class.php');
$apiUser = '';
$apiKey = '';
$serverId = ;
$serverClient = SoftLayer_SoapClient::getClient('SoftLayer_Hardware_Server', $serverId, $apiUser, $apiKey);
try {