This file contains 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
group { 'puppet': ensure => present } | |
Exec { path => [ '/bin/', '/sbin/', '/usr/bin/', '/usr/sbin/' ] } | |
File { owner => 0, group => 0, mode => 0644 } | |
class {'apt': | |
always_apt_update => true, | |
} | |
Class['::apt::update'] -> Package <| | |
title != 'python-software-properties' |
This file contains 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
unknown68a86d401752:precise64 davidadams$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Clearing any previously set forwarded ports... | |
[default] Creating shared folders metadata... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] Running 'pre-boot' VM customizations... | |
[default] Booting VM... |
This file contains 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
unknown68a86d444752:puphpet_do davidadams$ vagrant up --provider=digital_ocean | |
Bringing machine 'default' up with 'digital_ocean' provider... | |
[default] Using existing SSH key: Vagrant | |
[default] Creating a new droplet... | |
[default] Assigned IP address: 192.xxx.xxx.xxx | |
[default] Creating user account: vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_do/ => /vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_do/ => /home/vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_do/ => /var/www... | |
[email protected]'s password: |
This file contains 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
Vagrant.configure('2') do |config| | |
config.ssh.private_key_path = '~/.ssh/id_rsa' | |
config.ssh.username = 'vagrant' | |
config.vm.box = 'digital_ocean' | |
config.vm.provider :digital_ocean do |provider| | |
provider.client_id = '---' | |
provider.api_key = '--' | |
provider.image = 'Ubuntu 13.04 x64' | |
provider.region = 'New York 1' |
This file contains 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
{ | |
"provider": { | |
"type": "digitalocean", | |
"os": "ubuntu", | |
"local": { | |
"url": "http:\/\/files.vagrantup.com\/precise64.box", | |
"name": "precise64", | |
"personal_name": "my-first-box", | |
"ip": "192.xxx.xx.xxx", | |
"memory": "1024", |
This file contains 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
Vagrant.configure('2') do |config| | |
config.vm.provider :digital_ocean do |provider, override| | |
override.ssh.private_key_path = '~/.ssh/id_rsa' | |
override.vm.box = 'digital_ocean' | |
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box" | |
provider.client_id = 'client_id' | |
provider.api_key = 'api_key' | |
provider.image = 'Ubuntu 12.04 x64' |
This file contains 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
unknown68a86d401752:puphpet_digitalocean davidadams$ vagrant up --provider=digital_ocean | |
Bringing machine 'default' up with 'digital_ocean' provider... | |
[default] Creating new SSH key: Vagrant... | |
[default] Creating a new droplet... | |
[default] Assigned IP address: 192.241.138.57 | |
[default] Creating user account: vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_digitalocean/ => /vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_digitalocean/ => /home/vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_digitalocean/ => /var/www... | |
[email protected]'s password: |
This file contains 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
unknown68a86d401752:puphpet_digitalocean davidadams$ vagrant up --provider=digital_ocean | |
Bringing machine 'default' up with 'digital_ocean' provider... | |
[default] Creating new SSH key: Vagrant... | |
[default] Creating a new droplet... | |
[default] Assigned IP address: 192.xxx.xx.xx | |
[default] Creating user account: vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_digitalocean/ => /vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_digitalocean/ => /home/vagrant... | |
[default] Rsyncing folder: /Users/davidadams/Sites/VMs/puphpet_digitalocean/ => /var/www... | |
[email protected]'s password: |
This file contains 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
site: | |
title: 'Programming are hard' | |
description: 'A website recently generated with PieCrust.' | |
author: David Adams | |
pretty_urls: false | |
root: http://localhost:8080/ | |
default_format: none | |
tag_url: blog/tag/%tag% | |
smartypants: | |
enable: false |
This file contains 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
<?php | |
//normal way to define class | |
class Box { | |
protected $foo; | |
protected $bar; | |
protected $baz; |