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
root@18124f226937:/etc/apt# apt update | |
Get:1 http://apt.postgresql.org jessie-pgdg InRelease [56.5 kB] | |
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB] | |
Get:3 https://deb.nodesource.com jessie InRelease [4584 B] | |
Get:4 https://deb.nodesource.com jessie/main Sources [20 B] | |
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [822 kB] | |
Get:6 https://deb.nodesource.com jessie/main amd64 Packages [767 B] | |
Get:7 http://apt.postgresql.org jessie-pgdg/main amd64 Packages [200 kB] | |
Ign http://httpredir.debian.org jessie InRelease |
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
logstash-plain.log-20190331:[2019-03-31T00:02:00,982][INFO ][logstash.inputs.tcp ] Starting tcp input listener {:address=>"0.0.0.0:8081", :ssl_enable=>"true"} | |
logstash-plain.log-20190331:[2019-03-31T00:02:02,183][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x33a0ac49 run>"} | |
logstash-plain.log-20190331:[2019-03-31T00:02:02,289][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]} | |
logstash-plain.log-20190331:[2019-03-31T00:02:02,741][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600} | |
logstash-plain.log-20190331:[2019-03-31T01:01:02,057][WARN ][logstash.runner ] SIGTERM received. Shutting down. | |
logstash-plain.log-20190331:[2019-03-31T01:01:07,530][WARN ][org.logstash.execution.ShutdownWatcherExt] {"inflight_count"=>0, "stalling_threads_info"=>{}} | |
logstash-plain.log-20190331:[2019-03-31T01:01:07,542][ERROR][org.logstash.execution.Sh |
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
staging.tfvars | |
elb_sgs = ["test"] | |
main.tf | |
elb_sgs = ["${var.ingress_sg_web}", "${var.elb_sgs}"] | |
Error: module "reporting-web": "elb_sgs" is not a valid argument |
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
### terraform alarms for schedulers | |
resource "aws_cloudwatch_metric_alarm" "memory-critical-scheduler-1" { | |
alarm_name = "exago-${var.environment}-scheduler-1-memory-critical" | |
alarm_description = "Exago ${var.environment} scheduler-1 memory is critical." | |
comparison_operator = "LessThanOrEqualToThreshold" | |
evaluation_periods = "2" | |
alarm_description = "This alarm is for critical scheduler memory usage" | |
alarm_actions = ["${var.sns_topics["sev1"]}"] | |
threshold = "262144000" | |
metric_query { |
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
for i in $ids; | |
do | |
echo "Waiting for build ID $i" | |
echo "Debug information at https://us-west-2.console.aws.amazon.com/systems-manager/automation/execution/$i?region=us-west-2" | |
while true; | |
do | |
status=$(aws ssm get-automation-execution --automation-execution-id "$i") | |
if [[ $(echo "$status" | grep -i "status" | grep -i "failed") ]]; then | |
echo 'Build failed!' | |
exit 1 |
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
module "elastic-beanstalk-environment" { | |
source = "cloudposse/elastic-beanstalk-environment/aws" | |
version = "0.13.0" | |
app = "plupu-test-app" | |
keypair = "tb-keypair" | |
namespace = "sv" | |
private_subnets = ["subnet-06e1a5638be1d2552","subnet-06b9c862326ca7295"] | |
public_subnets = ["subnet-0f9a9b905acc08827", "subnet-0ba9e721df1ab29fc"] | |
security_groups = ["sg-07f9582d82c4058e8, sg-0bf6bf06395fdf2c4"] | |
stage = "staging" |
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
pipeline { | |
environment { | |
LANG = "C.UTF-8" | |
} | |
agent { | |
docker { | |
image 'centos:7' | |
args '-p 2222:22 -v --privileged ' | |
} | |
} |
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
_$ locale | |
LANG=en_US.UTF-8 | |
LANGUAGE= | |
LC_CTYPE="en_US.UTF-8" | |
LC_NUMERIC=ro_RO.UTF-8 | |
LC_TIME=ro_RO.UTF-8 | |
LC_COLLATE="en_US.UTF-8" | |
LC_MONETARY=ro_RO.UTF-8 | |
LC_MESSAGES="en_US.UTF-8" | |
LC_PAPER=ro_RO.UTF-8 |
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
for i in ${ids[@]} | |
do | |
echo "Waiting for build ID $i running on account: $ACCOUNT_ID" | |
echo "Debug information at https://us-west-2.console.aws.amazon.com/systems-manager/automation/execution/$i?region=$AWS_DEFAULT_REGION" | |
while true; | |
do | |
status=$(aws ssm get-automation-execution --output text --automation-execution-id "$i" ) | |
if [[ $(echo "$status" | grep -i "status" | grep -i "failed") ]]; then | |
### something has gone wrong, stop the execution | |
echo "Build failed!" |
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
stage("PushToGitHub") { | |
steps { | |
sh """ | |
git add --all . | |
git commit -m 'PIPELINE: update to AMIs to newest version' | |
git checkout -b automation | |
git checkout $GIT_BRANCH | |
git pull --rebase | |
git merge automation -m 'Merged from automation branch' | |
git push |
OlderNewer