These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.
Install the following packages:
apt-get install -y strongswan xl2tpd
Configure strong swan
| # /etc/puppetlabs/code/environments/production/hiera.yaml | |
| --- | |
| version: 4 | |
| datadir: data | |
| hierarchy: | |
| - name: "Nodes" | |
| backend: yaml | |
| path: "nodes/%{trusted.certname}" | |
| # Putting a JSON level between YAML levels like this |
| Debug: hiera(): Hiera YAML backend starting | |
| Debug: hiera(): Looking up lookup_options in YAML backend | |
| Debug: hiera(): Looking for data source common | |
| Debug: hiera(): Cannot find datafile /etc/puppetlabs/code/environments//hieradata/common.yaml, skipping |
| FROM ubuntu:14.04 | |
| MAINTAINER mchenetz@gmail.com | |
| RUN echo "Installing Chef Server 12.6.0 on Ubuntu 14.04" && \ | |
| apt-get update && \ | |
| apt-get install -y sudo && \ | |
| apt-get install -y wget && \ | |
| wget https://packages.chef.io/stable/ubuntu/14.04/chef-server-core_12.6.0-1_amd64.deb && \ | |
| sudo dpkg -i chef-server-core_12.6.0-1_amd64.deb | |
| EXPOSE 443 80 | |
| CMD /bin/bash |
| FROM ubuntu:16.04 | |
| MAINTAINER mchenetz@gmail.com | |
| RUN echo 'Starting latest Ubuntu' && \ | |
| apt-get update && \ | |
| apt-get -y install sudo && \ | |
| apt-get install -y wget && \ | |
| echo 'getting puppet for Xenial' && \ | |
| wget https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb && \ | |
| echo 'installing puppet repo' && \ | |
| sudo dpkg -i puppetlabs-release-pc1-xenial.deb && \ |
| input { | |
| http_poller { | |
| urls => { | |
| "meraki_traffic" => { | |
| method => get | |
| url => "https://dashboard.meraki.com/api/v0/networks/ENTER NETWORK ID/traffic?timespan=7200" | |
| headers => { | |
| Accept => "application/json" | |
| "x-cisco-meraki-api-key" => "ENTER API KEY" | |
| } |
These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.
Install the following packages:
apt-get install -y strongswan xl2tpd
Configure strong swan
| Required inputs ['vsphere_host', 'agent_private_key_path'] were not specified - expected inputs: ['dns_servers', 'pip_source_rpm_url', 'ldap_server', 'skip_checksum_validation', 'cli_source_url', 'external_network_switch_distributed', 'manager_resources_package', 'agent_rest_cert_path', 'rabbitmq_events_queue_length_limit', 'grafana_source_url', 'ldap_domain', 'rest_service_source_url', 'rabbitmq_cert_public', 'ldap_dn_extra', 'elasticsearch_endpoint_ip', 'server_name', 'ldap_password', 'consul_package_url', 'syncthing_package_url', 'plugins_common_source_url', 'vsphere_resource_pool_name', 'nginx_source_url', 'ssh_user', 'repmgr_rpm_url', 'postgresql95_libs_rpm_url', 'rest_service_gunicorn_worker_count', 'elasticsearch_clustering_enabled', 'elasticsearch_endpoint_port', 'rest_client_source_url', 'rabbitmq_logs_queue_length_limit', 'external_network_ip', 'rabbitmq_metrics_queue_message_ttl', 'ignore_bootstrap_validations', 'elasticsearch_heap_size', 'pgbouncer_rpm_url', 'postgresql_password', 'postgresql95_co |
| #!/bin/bash | |
| apt-get -y install ca-certificates | |
| wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb | |
| dpkg -i puppetlabs-release-pc1-trusty.deb | |
| echo "deb http://deb.theforeman.org/ trusty 1.14" > /etc/apt/sources.list.d/foreman.list | |
| echo "deb http://deb.theforeman.org/ plugins 1.14" >> /etc/apt/sources.list.d/foreman.list | |
| apt-get -y install ca-certificates | |
| wget -q https://deb.theforeman.org/pubkey.gpg -O- | apt-key add - | |
| apt-get update && apt-get -y install foreman-installer | |
| foreman-installer |
| #!/bin/bash | |
| . /usr/local/osmosix/etc/userenv | |
| echo "$CliqrTier_theforeman_IP theforeman.fhmc.local theforeman" | sudo tee -a /etc/hosts | |
| sudo hostnamectl set-hostname theforeman | |
| sudo systemctl restart systemd-hostnamed | |
| sudo yum -y install https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm | |
| sudo yum -y install epel-release | |
| sudo yum -y install foreman |
| from django.views import generic | |
| from django.db.models.base import Model | |
| from collections import OrderedDict | |
| from django.forms import BaseForm | |
| from django.core.validators import RegexValidator | |
| __all__ = ( | |
| 'AdditionalFormsMixin', | |
| ) |