yum -y install epel-release
yum repolist
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
{ | |
"log_file": "/etc/ublue/first-setup.log", | |
"distro_name": "uBlue OS", | |
"distro_logo": "org.vanillaos.FirstSetup", | |
"pre_run": [], | |
"post_run": [], | |
"tour": { | |
"get-involved": { | |
"icon": "system-users-symbolic", | |
"title": "Get Involved", |
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
{ | |
"log_file": "/etc/ublue/first-setup.log", | |
"distro_name": "uBlue OS", | |
"distro_logo": "org.vanillaos.FirstSetup", | |
"pre_run": [], | |
"post_run": [], | |
"tour": { | |
"get-involved": { | |
"icon": "system-users-symbolic", | |
"title": "Get Involved", |
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
multipass@big-bowerbird:~$ wget https://osm-download.etsi.org/ftp/osm-5.0-five/install_osm.sh | |
--2018-11-21 14:51:57-- https://osm-download.etsi.org/ftp/osm-5.0-five/install_osm.sh | |
Resolving osm-download.etsi.org (osm-download.etsi.org)... 195.238.226.47 | |
Connecting to osm-download.etsi.org (osm-download.etsi.org)|195.238.226.47|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 858 [text/x-sh] | |
Saving to: ‘install_osm.sh’ | |
install_osm.sh 100%[===================================================================================================================================================================>] 858 --.-KB/s in 0s | |
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
from charms.reactive import when, when_not, set_flag | |
from charmhelpers.core.hookenv import log, config | |
from charms.reactive.flags import register_trigger | |
# Register a trigger so that we can respond to config.changed, even if | |
# it's being cleared by another handler | |
register_trigger(when='config.changed', | |
set_flag='trigger.config') |
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
#!/usr/bin/env python | |
import json | |
service = [ | |
{ | |
'service_name': 'demo', | |
'service_options': ['mode http', 'balance leastconn', 'option httpchk GET / HTTP/1.0'], | |
'server_options': ['maxconn 100'], | |
'servers': [ | |
[ |
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
#!/usr/bin/env python | |
""" | |
Setup notes: | |
Git needs to be configured on the machine doing the ingestion. | |
git config --global user.name "Administrator" | |
git config --global user.email "admin@example.com" | |
In Gitlab: |
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
juju-log: Connecting to controller... ws://10.182.5.117:17070 as admin/admin | |
Traceback (most recent call last): | |
File "test_controller.py", line 253, in <module> | |
main() | |
File "test_controller.py", line 246, in main | |
if ns.login(): | |
File "test_controller.py", line 122, in login | |
self.client = self.loop.run_until_complete(self.connect()) | |
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete | |
return future.result() |
An example of connecting to your local LXD daemon.
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 | |
# | |
# This script will create xenial (and trusty, et al) lxd images that will | |
# be used by the lxd provider in juju 2.1+ It is for use with the lxd | |
# provider for local development and preinstalls a common set of production | |
# packages. | |
# | |
# This is important, as between them, basenode and layer-basic install ~111 | |
# packages, before we even get to any packages installed by your charm. | |
# |
NewerOlder