remote_file '/Users/tunde.oladipupo/Documents/0617/learn-chef/downloaded.py' do
source "https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py"
owner "tunde"
mode "755"
not_if {File.exists?("/Users/tunde.oladipupo/Documents/0617/learn-chef/downloaded.py")} #could have used :create_if_missing instead
end
require "aws-sdk"
require "thor"
class MyInstances < Thor
desc "allMyEc2","Simply get all public ip address of an AWS user account"
def allMyEc2
ec2Client=Aws::EC2::Client.new()
ec2Client.describe_instances.reservations.each do |reservation|
reservation.instances.each do |instance|
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
log_level :info | |
log_location STDOUT | |
ssl_verify_mode :verify_none | |
chef_server_url "http://localhost:4000" | |
file_cache_path "/var/cache/chef" | |
file_backup_path "/var/lib/chef/backup" |
-----BEGIN RSA PRIVATE KEY----- MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUp wmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ5 1s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh 3tx4VgMtrQ+WEgCjhoTwo23KMBAuJGSYnRmoBZM3lMfTKevIkAidPExvYCdm5dYq3XToLkkLv5L2 pIIVOFMDG+KESnAFV7l2c+cnzRMW0+b6f8mR1CJzZuxVLL6Q02fvLi55/mbSYxECQQDeAw6fiIQX GukBI4eMZZt4nscy2o12KyYner3VpoeE+Np2q+Z3pvAMd/aNzQ/W9WaI+NRfcxUJrmfPwIGm63il AkEAxCL5HQb2bQr4ByorcMWm/hEP2MZzROV73yF41hPsRC9m66KrheO9HPTJuo3/9s5p+sqGxOlF L0NDt4SkosjgGwJAFklyR1uZ/wPJjj611cdBcztlPdqoxssQGnh85BzCj/u3WqBpE2vjvyyvyI5k X6zk7S0ljKtt2jny2+00VsBerQJBAJGC1Mg5Oydo5NwD6BiROrPxGo2bpTbu/fhrT8ebHkTz2epl
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
provider "aws" { | |
alias="uswest2" | |
region = "us-west-2" | |
} | |
provider "aws" { | |
alias="uswest1" | |
region = "us-west-1" | |
} | |
variable "ami_map" { | |
type = "map" |
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
#select our cloud provider | |
provider "aws" { | |
region = "${var.aws_region}" | |
} | |
#create our vpc from scratch | |
resource "aws_vpc" "pipeline_1_vpc" { | |
cidr_block = "10.0.0.0/16" | |
enable_dns_hostnames = true | |
tags { |
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
FROM jenkins:alpine | |
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false" | |
COPY scripts/security.groovy /usr/share/jenkins/ref/init.groovy.d/security.groovy | |
COPY files/plugins.txt /usr/share/jenkins/ref/plugins.txt | |
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt |
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
provider "aws" { | |
region = "us-west-1" | |
} | |
resource "aws_dynamodb_table" "test-database" { | |
name = "tenants" | |
read_capacity = 20 | |
write_capacity = 20 | |
hash_key = "roomNumber" | |
range_key = "name" |
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
api: | |
advertiseAddress: 172.19.40.24 | |
bindPort: 4443 | |
controlPlaneEndpoint: "" | |
apiServerCertSANs: | |
- kubernetes.mycompany.com | |
apiServerExtraArgs: | |
authorization-mode: Node,RBAC | |
apiVersion: kubeadm.k8s.io/v1alpha2 | |
auditPolicy: |
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
``` | |
$ kubectl logs -f vault-5c57b46bd7-tpzj6 -n app istio-proxy | |
2020-01-15T17:31:12.320602Z info FLAG: --applicationPorts="[8200,8201]" | |
2020-01-15T17:31:12.320830Z info FLAG: --binaryPath="/usr/local/bin/envoy" | |
2020-01-15T17:31:12.320966Z info FLAG: --concurrency="2" | |
2020-01-15T17:31:12.321056Z info FLAG: --configPath="/etc/istio/proxy" | |
2020-01-15T17:31:12.321260Z info FLAG: --connectTimeout="10s" | |
2020-01-15T17:31:12.321391Z info FLAG: --controlPlaneAuthPolicy="NONE" | |
2020-01-15T17:31:12.321549Z info FLAG: --controlPlaneBootstrap="true" | |
2020-01-15T17:31:12.321644Z info FLAG: --customConfigFile="" |
OlderNewer