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
defaultPackage.x86_64-linux = let | |
nixosConfiguration = inputs.nixpkgs.lib.nixosSystem { | |
modules = [ | |
( | |
{ config, lib, pkgs, ... }: { | |
imports = [ | |
"${inputs.nixpkgs}/nixos/modules/profiles/installation-device.nix" | |
"${inputs.nixpkgs}/nixos/modules/profiles/base.nix" | |
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image.nix" | |
]; |
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
local service_ = k.Service(cfg.name) { | |
metadata+: cfg.metadata_, | |
target_pod: deployment_.spec.template, | |
target_ports: ['http', 'admin'], | |
} |
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
044f376ced2b013da727272b90ec6ce5ac6310b6165b22504a8c1e8041471885195e77fc383501a29f31046221017d97cfe32a3abaf7c96115b07f4ed8d8b05dc7 pocky |
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
2016-08-19T11:00:03Z [INFO] Starting Agent: Amazon ECS Agent - v1.12.0 (895f3c1) | |
2016-08-19T11:00:03Z [INFO] Loading configuration | |
2016-08-19T11:00:03Z [DEBUG] Environment variable empty: ECS_CONTAINER_STOP_TIMEOUT | |
2016-08-19T11:00:03Z [DEBUG] Loaded config: Cluster: stock-ecs-stage, Region: eu-west-1, DataDir: /data, Checkpoint: true, AuthType: , UpdatesEnabled: false, DisableMetrics: false, ReservedMem: 0, TaskCleanupWaitDuration: 10m0s, DockerStopTimeout: 30s | |
2016-08-19T11:00:03Z [INFO] Checkpointing is enabled. Attempting to load state | |
2016-08-19T11:00:03Z [INFO] Loading state! module="statemanager" | |
2016-08-19T11:00:03Z [DEBUG] Loaded state! module="statemanager" state="&{Data:map[TaskEngine:0xc82013a7d0 ContainerInstanceArn:0xc82013a7e0 Cluster:0xc82013a7f0 EC2InstanceID:0xc82013a800 ACSSeqNum:0xc82013a820] Version:4}" | |
2016-08-19T11:00:03Z [INFO] Restored cluster 'stock-ecs-stage' | |
2016-08-19T11:00:03Z [INFO] Detected Docker versions [1.17 1.18 1.19 1.20 1.21 1.22] | |
2016-08-19T11:00:03Z [INFO] Restored fro |
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
#!/bin/bash | |
# | |
# The MIT License | |
# | |
# Copyright 2014 Jakub Jirutka <[email protected]>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
source "https://rubygems.org" | |
gemspec |
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
class Chef | |
module DSL | |
module DataQuery | |
def encrypted_data_bag_item(bag, item) | |
secret = Chef::EncryptedDataBagItem.load_secret(File.join(node["chef"]["config_dir"], "encrypted_databags_secrets", bag, item)) | |
Chef::EncryptedDataBagItem.load(bag, item, secret) | |
end | |
end | |
end | |
end |
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
auto lo | |
iface lo inet loopback | |
auto bond0 | |
iface bond0 inet manual | |
slaves eth0 eth1 | |
bond_mode 802.3ad | |
bond_miimon 100 | |
bond_downdelay 200 | |
bond_updelay 200 |
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
OptionParser.new do |o| | |
o.on('-H', '--host hostname') { |hostname| @host = hostname } | |
o.on("-p", "--port port") { |port| @port = port } | |
o.on('-h') { puts o; exit } | |
o.parse! | |
end | |
raise OptionParser::MissingArgument if @host.nil? | |
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
require "ilorb" | |
search(:node, "bootstrap_ilo:*").sort_by{|n| n.name}.each do |n| | |
print "#{n.name} " | |
ilo_attrs = n["bootstrap"]["ilo"] | |
begin | |
ilo = ILORb.new(hostname: ilo_attrs["ip"], login: ilo_attrs["username"], password: ilo_attrs["password"]) | |
ilo.server_name(:value => n["hostname"]) |
NewerOlder