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
| $ razor tasks | |
| From https://localhost:8151/api/collections/tasks: | |
| +----------------+----------------------------------------------------------------+---------+-----------------------------------------------------+ | |
| | name | description | base | boot_seq | | |
| +----------------+----------------------------------------------------------------+---------+-----------------------------------------------------+ | |
| | centos | CentOS 6 Installer | redhat | 1: boot_install, default: boot_local | | |
| +----------------+----------------------------------------------------------------+---------+-----------------------------------------------------+ | |
| | centos/6 | CentOS 6 Installer | centos | 1: boot_install, default: boot_local | | |
| +----------------+---------------------------------------------------- |
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
| $ razor create-policy --name 3-centos --repo centos-7.1 --broker puppet-pe --tag dell-r710 --enabled --hostname 'cn-${id}.lan' --root-password secret --max-count 3 | |
| From https://localhost:8151/api/collections/policies/3-centos: | |
| name: 3-centos | |
| repo: centos-7.1 | |
| task: centos | |
| broker: puppet-pe | |
| enabled: true | |
| max_count: 3 | |
| tags: dell-r710 |
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
| $ razor tags dell-r710 nodes | |
| From https://localhost:8151/api/collections/tags/dell-r710/nodes: | |
| +-------+-------------------+-----------+--------+----------------+ | |
| | name | dhcp_mac | tags | policy | metadata count | | |
| +-------+-------------------+-----------+--------+----------------+ | |
| | node7 | 84:2b:2b:0a:c2:df | dell-r710 | centos | 1 | | |
| +-------+-------------------+-----------+--------+----------------+ | |
| | node9 | 84:2b:2b:07:99:4d | dell-r710 | centos | 1 | | |
| +-------+-------------------+-----------+--------+----------------+ |
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
| $ razor tags | |
| From https://localhost:8151/api/collections/tags: | |
| +-----------+---------------------------------------------------+-------+----------+ | |
| | name | rule | nodes | policies | | |
| +-----------+---------------------------------------------------+-------+----------+ | |
| | dell-r710 | ["eq", ["fact", "productname"], "PowerEdge R710"] | 3 | 1 | | |
| +-----------+---------------------------------------------------+-------+----------+ | |
| Query an entry by including its name, e.g. `razor tags dell-r710` |
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
| /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -server -Xms128M -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dplay.debug=yes -Dapple.awt.UIElement=true -javaagent:/Users/spiegela/.gradle/play-1.3.1/framework/play-1.3.1.jar -Dapplication.path=/Users/spiegela/src/dist/emc/coprhd-controller/vipr-portal/portal/. -Djava.endorsed.dirs=/Users/spiegela/.gradle/play-1.3.1/framework/endorsed -Dplay.id=portalonly -DviprHost=192.168.100.11 -DviprUsername=root -DviprPassword=Password123! -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/jconsole.jar:/Lib |
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
| /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -server -Xms128M -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dplay.debug=yes -Dapple.awt.UIElement=true -javaagent:/Users/spiegela/.gradle/play-1.3.0/framework/play-1.3.0.jar -Dapplication.path=/Users/spiegela/src/dist/emc/coprhd-controller/vipr-portal/portal/. -Djava.endorsed.dirs=/Users/spiegela/.gradle/play-1.3.0/framework/endorsed -Dplay.id=portalonly -DviprHost=localhost -DviprUsername=root -DviprPassword=ChangeMe -Didea.launcher.port=7534 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/jconsole.jar:/Library/Java |
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
| config.vm.provider :vmware_fusion do |v| | |
| vdiskmanager = '/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager' | |
| dir = "#{ENV['PWD']}/.vagrant/additional-disks" | |
| file_to_disk = "#{dir}/hd2.vmdk" | |
| if ARGV[0] == "up" | |
| unless File.directory?( dir ) | |
| Dir.mkdir dir | |
| end | |
| unless File.exists?( file_to_disk ) | |
| `#{vdiskmanager} -c -s 100GB -a lsilogic -t 0 #{file_to_disk}` |
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
| $ cf scale -i 5 phonecat | |
| Scaling app phonecat in org me / space dev as admin... | |
| OK | |
| $ cf app phonecat | |
| Showing health and status for app phonecat in org me / space dev as admin... | |
| OK | |
| requested state: started | |
| instances: 5/5 | |
| usage: 256M x 5 instances |
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
| $ cd app | |
| $ npm install --quiet | |
| > [email protected] postinstall /Users/spiega1/src/expl/cf/angular-phonecat | |
| > bower install | |
| $ cf push -b staticfile_buildpack phonecat | |
| Updating app phonecat in org me / space dev as admin... | |
| OK |
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
| $ cf buildpacks | |
| Getting buildpacks... | |
| buildpack position enabled locked filename | |
| staticfile_buildpack 1 true false staticfile_buildpack-cached-v1.2.1.zip | |
| java_buildpack 2 true false java-buildpack-v3.1.zip | |
| ruby_buildpack 3 true false ruby_buildpack-cached-v1.6.1.zip | |
| nodejs_buildpack 4 true false nodejs_buildpack-cached-v1.5.0.zip | |
| go_buildpack 5 true false go_buildpack-cached-v1.5.0.zip | |
| python_buildpack 6 true false python_buildpack-cached-v1.5.0.zip |