Skip to content

Instantly share code, notes, and snippets.

Krzysztof Klimonda kklimonda

Block or report user

Report or block kklimonda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:048cfd835fb725268561993324acd997
### Keybase proof
I hereby claim:
* I am kklimonda on github.
* I am kklimonda (https://keybase.io/kklimonda) on keybase.
* I have a public key ASAwwn293lQ9yQOsadtBMDLH0qkX1DH-aNiKJHc51lKQOQo
To claim this, I am signing this object:
View main.tf
provider openstack {
user_name = "[user]"
domain_name = "Users"
tenant_name = "[tenant]"
password = "[password]"
auth_url = "https://stack.intra.codilime.com:5000/v3/"
}
resource "openstack_networking_network_v2" "mgmt_net" {
name = "${var.prefix}mgmt_net"
@kklimonda
kklimonda / changes.md
Last active Nov 22, 2017
Review of contrail vnc packaging changes
View changes.md

Contrail VNC Debian Packaging Changes

Initial changes to the Contrail VNC packaging for Debian to modernize it and make it a bit more manageable.

Changes description

Most of the changes outside of debian/rules and debian/control are fairly small - the packaging logic is contained in those two files.

debian/rules and debian/control changes

View job.yaml
- hosts: localhost
connection: local
tasks:
- name: Create a list of YAML files to validate
find:
paths: .
patterns: "*.yaml"
recurse: true
register: yaml
changed_when: false
View jobs.yaml
---
- job:
name: job-base
- job:
name: job-base
branches: master
vars:
version: 5.0
View gist:6983e0fa84a62dc051d5afbb78d3efea
---
- job:
name: test-job
vars:
test_variable: "{{ ansible_env.HOME }}/test-path"
---
- hosts: all
vars:
test_variable: "{{ ansible_env.HOME }}/test-path"
View gist:6bbcf849dfdc3a77648fef4b9a4c7f71
CONTROLLER_PATCHSETS="
34917
34918
34919
34920
34924
34986
35098
"
BUILD_PATCHSETS="
@kklimonda
kklimonda / buildinfo.cc
Created Aug 11, 2017
contrail autogenerated build information
View buildinfo.cc
/*
* Autogenerated file. DO NOT EDIT.
*/
#include "buildinfo.h"
const std::string BuildInfo = "{\"build-info\": [{\"build-time\": \"2017-08-11 06:05:27.301890\", \"build-hostname\": \"grown-marten\", \"build-user\": \"ubuntu\", \"build-version\": \"4.1.0.0\"}]}";
View gist:709762451ccb71c8e99c10efef4b1dca
scons: *** Found dependency cycle(s):
build/production/dns/cmn/buildinfo.h -> build/production/dns/cmn/buildinfo.h
build/production/control-node/buildinfo.h -> build/production/control-node/buildinfo.h
Internal Error: no cycle found for node build/production/dns/cmn/buildinfo.cc (<SCons.Node.FS.File object at 0x4654720>) in state pending
build/production/analytics/buildinfo.h -> build/production/analytics/buildinfo.h
Internal Error: no cycle found for node build/production/vnsw/agent/contrail/buildinfo.cc (<SCons.Node.FS.File object at 0x2a121b0>) in state pending
Internal Error: no cycle found for node build/production/analytics/buildinfo.cc (<SCons.Node.FS.File object at 0x2bd1af0>) in state pending
build/production/query_engine/buildinfo.h -> build/production/query_engine/buildinfo.h
File "/home/ubuntu/scons-2.5/lib/python2.7/site-packages/scons-2.5.1/SCons/Taskmaster.py", line 1043, in cleanup
@kklimonda
kklimonda / SConscript
Created Aug 10, 2017
SConscript patch to fix target dependencies
View SConscript
diff --git a/src/control-node/SConscript b/src/control-node/SConscript
index c0f2960..4e45fd4 100644
--- a/src/control-node/SConscript
+++ b/src/control-node/SConscript
@@ -44,7 +44,7 @@ rel_path = Dir('control_node').path
def BuildInfoAction(target, source, env):
env.GenerateBuildInfoPyCode(path=rel_path)
-build_info_rules = [env.Command(target='buildinfo.py', source = None, action=BuildInfoAction)]
+build_info_rules = [env.Command(target='control_node/buildinfo.py', source = None, action=BuildInfoAction)]
You can’t perform that action at this time.