Skip to content
Snippets Groups Projects
Commit fd7b74ee authored by lavado's avatar lavado
Browse files

moving squid NS/KNF to magma folder

parent 0582db1c
No related branches found
No related tags found
2 merge requests!11Hackfest9,!10Hackfest9
Showing
with 5674 additions and 0 deletions
# Copyright 2019 Canonical Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="ops",
version="0.0.1",
description="The Python library behind great charms",
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache-2.0",
url="https://github.com/canonical/operator",
packages=["ops"],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: Apache Software License",
],
)
#!/bin/bash
case $1 in
db) echo '["db:1"]' ;;
mon) echo '["mon:2"]' ;;
ha) echo '[]' ;;
db0) echo '[]' ;;
db1) echo '["db1:4"]' ;;
db2) echo '["db2:5", "db2:6"]' ;;
*) echo '[]' ;;
esac
#!/bin/bash
fail_not_found() {
1>&2 echo "ERROR invalid value \"$1\" for option -r: relation not found"
exit 2
}
case $2 in
1) echo '["remote/0"]' ;;
2) echo '["remote/0"]' ;;
3) fail_not_found $2 ;;
4) echo '["remoteapp1/0"]' ;;
5) echo '["remoteapp1/0"]' ;;
6) echo '["remoteapp2/0"]' ;;
*) fail_not_found $2 ;;
esac
"options": {}
../../../../ops
\ No newline at end of file
name: main
summary: A charm used for testing the basic operation of the entrypoint code.
maintainer: Dmitrii Shcherbakov <dmitrii.shcherbakov@canonical.com>
description: A charm used for testing the basic operation of the entrypoint code.
tags:
- misc
series:
- bionic
- cosmic
- disco
min-juju-version: 2.7.1
provides:
db:
interface: db
requires:
mon:
interface: monitoring
peers:
ha:
interface: cluster
subordinate: false
storage:
disks:
type: block
multiple:
range: 0-
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import sys
sys.path.append('lib')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment