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
var nats = require('node-nats-streaming').connect('fissionMQTrigger', 'web-crawler-'+Math.random().toString(11).replace('0.', ''), process.env.NATS_CONNECTION) | |
nats.on('error', function(err) { | |
console.log(err); | |
}) |
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
#cloud-config | |
ssh_authorized_keys: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDbIzT0vHOz0f0sz94psv6DXvea53Y2saolQzq/QrRczFy/pu11uvdZmVqmuMJSlGdhcbdEkcyLbGzbXKvVStCTUCNxXIN6JnDy6ku/AR7ix4dJfVzZVCROwTa24km98O44IAy9uLJlY3qVsBNLdHNEAATrnjFdI9yho68utCB9Erbs41dmZ8IbES3f5GZst8dnX7pXGoYXiNTkO7Q4tmWMsylaEGTShQokQX3tNpG7c9cgc5andjjxGcspxq7CI/KlI7bedcVItQxlDvBIhwnvXKY7gET584NZ8FOVwVoD/ZzxFf8mxDgnFT60ptdZMxrZQ9q29fAkVI4XaDqPL3TzJvmdbu0CwPYOFVoAPmeq2nG1HwAqZ9Kjj8UNh0M6Dwqke4qsng8hTNyiKgeSNKFypdpJN3qBKudbbQLS4ghuIdQkM+LniVy3X49psfFV3HLSqKe8Z1c5neqsB1BeCpUb3zp3sVZfIG0MockRquaeCzQGLaxbiWcaWQtRpc94u5D56QyeV5SA+C8VKFhdY9Jsv9gVlBlV+3TGHjbaFHMM2wiZUeGnNhHPhl8+ymhW1wufdGsHBfaQEJUPqFoMFf9zpjd5unD0XVpvrL3U6+gRNQ5Nsj9HeUWO857OUrSU/4lNWF1dZZXQT1OmibDAYxtZ35vGekkbDNI33nsJiKKMzw== |
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
1. Netzwerkkonfiguration. Interface eno1 hat die IP 172.16.23.8, damit der virtuelle router .9 und die VPN-Instanz .10 erhalten kann | |
2. Interface eno2 vorerst ohne VLAN erstellt. Aus dem Netzbereich 172.16.123.0/24 werden Floating IPs genommen. VLANs sind möglich, um weitere Netze zu erhalten | |
3. Packstack-Answer-File öffnen und mit :%/172.16.23.8/172.16.123.10/g anschließend packstack --answer-file=packstack*.txt nochmal laufen lassen. VORSICHT: am besten mit grep überprüfen, ob wirklich alle 23.8-er Adressen weg sind. Auch provision_demo_tenant oder so auf no stellen | |
4. Zwei externe Netze existieren: br-ex und br-inet. Openstack wird nur das Management von br-ex erhalten | |
5. Die Interface-config von eno2.143 wird angepasst als Bridgeport für br-ex: | |
ifcfg-eno2.143 und ifcfg-br-ex | |
8. openstack-config --set /etc/neutron/plugin.ini ml2 type_drivers vxlan,flat,vlan | |
9. # service network restart | |
# service neutron-openvswitch-agent restart |
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
#! /usr/bin/perl -w | |
# | |
use strict; | |
use warnings; | |
use Text::CSV; | |
my $file = $ARGV[0] or die "Need to get CSV file on the command line\n"; # To get the .csv file from the command-line parameter | |
my $csv = Text::CSV->new ({ |