Loading .gitmodules +3 −0 Original line number Diff line number Diff line Loading @@ -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 charm-packages/native_k8s_charm_ns/native_k8s_charm_nsd.yaml 0 → 100644 +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 charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/actions.yaml 0 → 100644 +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 charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/actions/changecontent 0 → 100755 +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 charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/config.yaml 0 → 100644 +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
.gitmodules +3 −0 Original line number Diff line number Diff line Loading @@ -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
charm-packages/native_k8s_charm_ns/native_k8s_charm_nsd.yaml 0 → 100644 +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
charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/actions.yaml 0 → 100644 +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
charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/actions/changecontent 0 → 100755 +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
charm-packages/native_k8s_charm_vnf/charms/nginx-k8s/config.yaml 0 → 100644 +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