This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"results": [{"type": "LogicalSwitchConfig", "_schema": "/ws.v1/schema/LogicalSw | |
itchConfig", "_href": "/ws.v1/lswitch/3ca2d5ef-6a0f-4392-9ec1-a6645234bc55"}, {" | |
type": "LogicalSwitchConfig", "_schema": "/ws.v1/schema/LogicalSwitchConfig", "_ | |
href": "/ws.v1/lswitch/81f51868-2142-48a8-93ff-ef612249e025"}, {"type": "Logical | |
SwitchConfig", "_schema": "/ws.v1/schema/LogicalSwitchConfig", "_href": "/ws.v1/ | |
lswitch/9fed3467-dd74-421b-ab30-7bc9bfae6248"}], "result_count": 3} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result_count": 3, | |
"results": [ | |
{ | |
"_href": "/ws.v1/lswitch/3ca2d5ef-6a0f-4392-9ec1-a6645234bc55", | |
"_schema": "/ws.v1/schema/LogicalSwitchConfig", | |
"type": "LogicalSwitchConfig" | |
}, | |
{ | |
"_href": "/ws.v1/lswitch/81f51868-2142-48a8-93ff-ef612249e025", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
python -m json.tool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@accounts::virtual { 'jsmith': | |
uid => 5001, | |
realname => 'John Smith', | |
pass => '<insert password hash here>', | |
sshkeytype => 'ssh-dss', | |
sshkey => '<insert SSH key here>', | |
require => Class['accounts::config'], | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define accounts::virtual ($uid,$realname,$pass,$sshkeytype,$sshkey) { | |
include accounts::params | |
# Pull in values from accounts::params | |
$homepath = $accounts::params::homepath | |
$shell = $accounts::params::shell | |
# Create the user | |
user { $title: | |
ensure => 'present', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if $::operatingsystem == 'Ubuntu' { | |
# Install prerequisite packages | |
package {'make': | |
ensure => 'installed', | |
} | |
package {'dkms': | |
ensure => 'installed', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu Server automated installation | |
d-i debian-installer/locale string en_US | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/layoutcode string us | |
d-i netcfg/choose_interface select eth0 | |
d-i netcfg/get_hostname string unassigned-hostname | |
d-i netcfg/get_domain string unassigned-domain | |
d-i netcfg/wireless_wep string | |
d-i mirror/country string manual |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure apt to use apt-cacher-ng | |
class {'apt': | |
proxy_host => 'apt-cacher-ng.example.com', | |
proxy_port => '3142', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt::source { 'ubuntu-cloud': | |
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu', | |
repos => 'main', | |
release => 'precise-updates/grizzly', | |
include_src => false, | |
required_packages => 'ubuntu-cloud-keyring', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_uuid : d3613f46-4ef8-4e4c-99f6-55676394a32a | |
admin_state : up | |
cfm_fault : [] | |
cfm_fault_status : [] | |
cfm_health : [] | |
cfm_mpid : [] | |
cfm_remote_mpids : [] | |
cfm_remote_opstate : [] | |
duplex : full | |
external_ids : {attached-mac="52:54:00:B5:AE:29", iface-id="d198ac1a-c93e-af49-a0f0-ad78a5b19a56", iface-status=active, vm-id="c0e9b909-7233-d2eb-7fde-3a2d39db1ae5"} |