Commit b33078d2 authored by lavado's avatar lavado
Browse files

Merge branch 'native_k8s_charm' into 'master'

Add Native K8s Charm Package with Actions

See merge request !78
parents ca8173af 6fbc3c10
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -55,3 +55,6 @@
[submodule "charm-packages/nopasswd_proxy_charm_vnf/charms/simple/mod/charms.osm"]
	path = charm-packages/nopasswd_proxy_charm_vnf/charms/simple/mod/charms.osm
	url = https://github.com/charmed-osm/charms.osm
[submodule "charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/mod/operator"]
	path = charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/mod/operator
	url = https://github.com/canonical/operator
+22 −0
Original line number Diff line number Diff line
nsd-catalog:
    nsd:
    -   id: native_k8s_charm-ns
        name: native_k8s_charm-ns
        short-name: native_k8s_charm-ns
        description: NS with 1 KDU connected to the mgmtnet VL
        version: '1.0'
        logo: osm.png
        constituent-vnfd:
        -   vnfd-id-ref: native_k8s_charm-vnf
            member-vnf-index: native_k8s_charm-vnf
        vld:
        -   id: mgmtnet
            name: mgmtnet
            short-name: mgmtnet
            type: ELAN
            mgmt-network: true
            vim-network-name: mgmt
            vnfd-connection-point-ref:
            -   member-vnf-index-ref: native_k8s_charm-vnf
                vnfd-id-ref: native_k8s_charm-vnf
                vnfd-connection-point-ref: mgmtnet
+8 −0
Original line number Diff line number Diff line
changecontent:
    description: "Change content of default html"
    params:
        customtitle:
            description: "New Title"
            default: ""
    required:
        - customtitle
+31 −0
Original line number Diff line number Diff line
#!/bin/bash

CUSTOM_TITLE=`action-get customtitle`

cat > /usr/share/nginx/html/index.html <<EOF
<!DOCTYPE html>
<html>
<head>
<title>$CUSTOM_TITLE</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>$CUSTOM_TITLE</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>
EOF
+9 −0
Original line number Diff line number Diff line
options:
  port:
    description: Zookeeper client port
    type: int
    default: 80
  image:
    description: Docker image name
    type: string
    default: nginx
Loading