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
public class CheckHostResolution { | |
public static void main(String[] args) { | |
try { | |
String s = InetAddress.getLocalHost().getCanonicalHostName(); | |
System.out.println(s); | |
} catch (Exception ex) { | |
System.err.println(ex); | |
} | |
} | |
} |
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
gcloud auth activate-service-account --key-file=phdandpeasant2-d9121408d486-compute.json | |
gcloud config set project phdandpeasant2 |
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
--- | |
- hosts: localhost | |
user: root | |
name: Install ODL & VTN | |
tasks: | |
- name: get number of cores | |
shell: "cat /proc/cpuinfo | grep -E '^processor' | wc -l" | |
register: threads |
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
--- | |
- hosts: localhost | |
user: root | |
name: Install Open vSwitch | |
tasks: | |
- name: update apt | |
apt: upgrade=dist |