Skip to content

Instantly share code, notes, and snippets.

TASK [Validating Project: dano-test-project] ***********************************
fatal: [localhost]: FAILED! => changed=false
validated: false
validation:
- failures:
- Need at least one tag
key: test-bool
- failures:
- Need at least one tag
key: test-flag
- fail:
msg: cannot set included_actions and excluded_actions
when: included_actions is defined and excluded_actions is defined
# Root logger option
log4j.rootLogger=INFO, stdout
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1} - %m%n
@InTheCloudDan
InTheCloudDan / gist:0777b56ca0a3f2715deaebdb15e4439c
Created April 17, 2019 01:18
LaunchDarkly Ansible Test JSON
# Creates a Boolean flag
{
"ANSIBLE_MODULE_ARGS": {
"api_key": "change_me",
"type": "bool",
"state": "present",
"key": "example_fabbbnafewfzq",
"tags": ["yellow", "green"],
"name": "ansible-random-new-name",
"description": "This is an awesome feature that will be implemented."
@NonCPS
def call(String repository, String credentials) {
//withCredentials([usernamePassword(credentialsId: credentials,
// usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: credentials.toString(), passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) {
println env.USERNAME
println env.PASSWORD
sh 'echo $USERNAME and $PASSWORD'
def authString = "${env.USERNAME}:${env.PASSWORD}".encodeBase64().toString();
URLConnection conn = new URL("https://api.${githubUrl}.com/repos/${repository}/releases/latest").openConnection();
Command Line: '"/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64" -listen 0.0.0.0 -port 12000'
Starting up...
Startup Phase 1 complete
Fatal error encountered!
Backtrace:
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x653068]
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x653aa0]
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x6534f2]
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x5f0ac8]
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x19348d5]
FROM ubuntu:16.04
MAINTAINER jrepp@blizzard.com
# Update the image with required build packages
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y \
net-tools \
[race: Random
options {
raw: true
score: true
}
server_ports {
game_port: 15198
base_port: 19504
}
client_ports {
def _docker(self, run_config):
def poll(self):
return True if self.status == "running" else False
def running(self):
pass
client = docker.from_env()
container = client.containers.run("s2client-game", ports={'12000': self._port}, detach=True,
healthcheck={"test": "netstat -anpt | grep 12000 || exit 1"})
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 861, in emit
msg = self.format(record)
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 734, in format
return fmt.format(record)
File "/Users/danielobrien/.local/share/virtualenvs/pysc2-dev-N6jop2j8/lib/python2.7/site-packages/absl/logging/__init__.py", line 812, in format
return prefix + super(PythonFormatter, self).format(record)
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 465, in format
record.message = record.getMessage()
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 329, in getMessage