Skip to content

Instantly share code, notes, and snippets.

@graste
Last active December 15, 2015 04:50

Revisions

  1. graste revised this gist Jun 21, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,8 @@ Vagrant::Config.run do |config|
    ...
    puppet.options = "--verbose --debug --graph"
    end
    end
    end
    ```

    Host-CLI:
  2. graste revised this gist Jun 21, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ Use ```--graph``` as option for ```puppet``` in ```Vagrantfile```:
    ```
    Vagrant::Config.run do |config|
    config.vm.define :devbox do |devbox|
    ...
    devbox.vm.customize ["modifyvm", :id, "--name", "trololo-devbox"]
    ...
    devbox.vm.provision :shell, :inline => "apt-get update --fix-missing"
  3. graste revised this gist Jun 21, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Use ```--graph``` as puppet parameter in Vagrantfile:
    Use ```--graph``` as option for ```puppet``` in ```Vagrantfile```:
    ```
    Vagrant::Config.run do |config|
    config.vm.define :devbox do |devbox|
  4. graste revised this gist Jun 21, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    Vagrantfile:
    Use ```--graph``` as puppet parameter in Vagrantfile:
    ```
    Vagrant::Config.run do |config|
    config.vm.define :devbox do |devbox|
    config.vm.customize ["modifyvm", :id, "--name", "trololo-devbox"]
    devbox.vm.customize ["modifyvm", :id, "--name", "trololo-devbox"]
    ...
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    devbox.vm.provision :shell, :inline => "apt-get update --fix-missing"
    ...
    cibox.vm.provision :puppet do |puppet|
    devbox.vm.provision :puppet do |puppet|
    ...
    puppet.options = "--verbose --debug --graph"
    end
  5. graste revised this gist Jun 21, 2013. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    Vagrantfile:
    ```
    Vagrant::Config.run do |config|
    config.vm.define :devbox do |devbox|
    config.vm.customize ["modifyvm", :id, "--name", "cibox"]
    config.vm.customize ["modifyvm", :id, "--name", "trololo-devbox"]
    ...
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    ...
    @@ -14,6 +16,6 @@ Vagrantfile:
    Host-CLI:
    ```
    $ vagrant ssh-config > ssh-config
    $ ssh -F ssh-config cibox dot -Tsvg -o /tmp/resources.svg /var/lib/puppet/state/graphs/resources.dot
    $ scp -F ssh-config cibox:/tmp/resources.svg .
    $ ssh -F ssh-config devbox dot -Tsvg -o /tmp/resources.svg /var/lib/puppet/state/graphs/resources.dot
    $ scp -F ssh-config devbox:/tmp/resources.svg .
    ```
  6. graste revised this gist Mar 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ Vagrantfile:
    end
    ```


    Host-CLI:
    ```
    $ vagrant ssh-config > ssh-config
    $ ssh -F ssh-config cibox dot -Tsvg -o /tmp/resources.svg /var/lib/puppet/state/graphs/resources.dot
  7. graste renamed this gist Mar 20, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. graste created this gist Mar 20, 2013.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    Vagrantfile:
    ```

    config.vm.customize ["modifyvm", :id, "--name", "cibox"]
    ...
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    ...
    cibox.vm.provision :puppet do |puppet|
    ...
    puppet.options = "--verbose --debug --graph"
    end
    ```


    ```
    $ vagrant ssh-config > ssh-config
    $ ssh -F ssh-config cibox dot -Tsvg -o /tmp/resources.svg /var/lib/puppet/state/graphs/resources.dot
    $ scp -F ssh-config cibox:/tmp/resources.svg .
    ```