Skip to content

Instantly share code, notes, and snippets.

View planetrobbie's full-sized avatar
💭
refactoring notes

Sebastien Braun planetrobbie

💭
refactoring notes
View GitHub Profile
@planetrobbie
planetrobbie / gist:c268e9c4907cb48df7941aff5a5ad27b
Created April 28, 2017 10:51
Jenkins pipeline to lint reclass model of an etcd cluster
pipeline {
triggers { pollSCM('H/5 * * * *') }
agent any
stages {
stage('Install Salt Formulas Service Metadata into Workspace') {
steps {
dir(path: 'service') {
sh 'for i in /usr/share/salt-formulas/reclass/service/*; do ln -s $i .; done'
}
@planetrobbie
planetrobbie / pet-snippet.toml
Last active March 17, 2017 14:02
description
[[snippets]]
description = "mount loki volume"
command = "sshfs [email protected]:/home/sbraun/yet /Users/sbraun/in/luna"
[[snippets]]
description = "Display all listen port"
command = "lsof -Pan -i tcp -i udp"
[[snippets]]
description = "Process with the largest memory usage"
ctl01.int.cloudvps.com:
----------
ID: neutron_server_packages
Function: pkg.installed
Name: neutron-server
Result: True
Comment: Package neutron-server is already installed
Started: 19:12:05.795319
Duration: 624.188 ms
Changes:
```#cloud-config
debconf_selections:
maas: |
{{for line in str(curtin_preseed).splitlines()}}
{{line}}
{{endfor}}
{{if third_party_drivers and driver}}
early_commands:
{{py: key_string = ''.join(['\\x%x' % x for x in map(ord, driver['key_binary'])])}}
driver_00_get_key: /bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg
The puppet error log shows,
2017-01-22 08:22:34 NOTICE Finished catalog run in 13.30 seconds
2017-01-22 08:22:34 INFO (Stage[main]) Evaluated in 0.00 seconds
2017-01-22 08:22:34 INFO (Stage[main]) Starting to evaluate the resource
2017-01-22 08:22:34 INFO (Class[Influxdb::Service]) Evaluated in 0.00 seconds
2017-01-22 08:22:34 INFO (Class[Influxdb::Service]) Starting to evaluate the resource
2017-01-22 08:22:34 INFO (/Stage[main]/Influxdb::Service/Service[influxdb]) Evaluated in 0.00 seconds
2017-01-22 08:22:34 WARNING (/Stage[main]/Influxdb::Service/Service[influxdb]) Skipping because of failed dependencies
2017-01-22 08:22:34 NOTICE (/Stage[main]/Influxdb::Service/Service[influxdb]) Dependency Package[influxdb] has failures: true
START with options: ['server', 'create', '--debug', '--flavor', 'baremetal', '--image', 'dd1e78e0-b89d-451b-b75d-3317414d55a0 ', '--nic', 'net-id=386ea8c4-354d-4922-bbbb-35db7a02b435', 'test-ironic']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://10.0.1.3:5000/', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='Default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_baremetal_api_version='1.6', os_clustering_api_version='1', os_compute_api_version='', os_data_processing_api_version='1.1', os_data_processing_url='', os_dns_api_version='2', os_identity_api_version='', os_image_api_version='', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='1.1', os_volume_api_version='', os_workflow_api_version='2', pass
Internal Server Error: /auth/login/
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 137, in get_response
response = response.render()
File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 105, in render
self.content = self.rendered_content
File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 82, in rendered_content
content = template.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
return self._render(context)