Skip to content

Commit

Permalink
Apply SPDX identifier
Browse files Browse the repository at this point in the history
Applies SPDX identifier across the repo automatically to indicate the
Apache-2.0 license and owner
  • Loading branch information
DavidFair committed Dec 1, 2023
1 parent 3ed220e commit 34af811
Show file tree
Hide file tree
Showing 84 changed files with 168 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenStack-AD-Migrate/usr/local/bin/openstack-ad-migrate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python
import ldap
import ldap.sasl
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/entrypoint.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3

import logging
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/aq_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file defines methods to be used to interact with the
Aquilon API
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/aq_metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file defines the class to handle deserialised metadata for
Aquilon
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/consumer_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file allows us to set environment variables so that
credentials are not exposed
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/message_consumer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file manages how rabbit messages stating AQ VM creation and deletion
should be handled and processed between the consumer and Aquilon
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file deserializes a server's network address from an
OpenStack API response
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/openstack_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file defines methods for connecting and interacting with the
OpenStack API
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/rabbit_message.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file handles how messages from Rabbit are processed and the
message extracted
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/rabbit_consumer/vm_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
This file has a dataclass for creating VM data objects from messages
"""
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Fixtures for unit tests, used to create mock objects
"""
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_aq_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests that we perform the correct REST requests against
the Aquilon API
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_aq_metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests the AQ metadata dataclass, including
init from environment variables, and overriding values
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_consumer_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Test the consumer config class, this handles the environment variables
that are used to configure the consumer.
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_message_consumer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests the message consumption flow
for the consumer
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_openstack_address.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests the dataclass representing OpenStack network addresses
"""
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_openstack_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests that the Openstack API functions are invoked
as expected with the correct params
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rabbit-Consumer/test/test_rabbit_message.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests rabbit messages are consumed correctly from the queue
"""
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rally-Tester/usr/local/bin/rally-run-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

# Exit on error
set -e
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-Rally-Tester/usr/local/bin/rally_extract_results.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
"""
Parses results from the rally task report and sends them to influxdb
Expand Down
2 changes: 2 additions & 0 deletions OpenStack-accounting/usr/local/sbin/accountinglib.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
import time
import datetime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
import accountinglib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
import accountinglib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
import accountinglib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
import accountinglib

Expand Down
2 changes: 2 additions & 0 deletions OpenStack-accounting/usr/local/sbin/now-accounting.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

# helper script for calculating accounting for today

Expand Down
2 changes: 2 additions & 0 deletions OpenStack-accounting/usr/local/sbin/past-accounting.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

# helper script for regenerating daily accounting over a period of time

Expand Down
2 changes: 2 additions & 0 deletions OpenStack_get_username/var/www/cgi-bin/get_username.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

echo "Content-Type: text/plain"
echo ""
Expand Down
2 changes: 2 additions & 0 deletions OpenStack_irisiam_mapper/var/www/cgi-bin/irisiam-mapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
#!/usr/bin/python3
import sys
import os
Expand Down
2 changes: 2 additions & 0 deletions aq_zombie_finder/aq_zombie_finder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from re import compile as re_compile
from pathlib import Path
import argparse
Expand Down
2 changes: 2 additions & 0 deletions aq_zombie_finder/test/test_aq_zombie_finder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from unittest import mock
from unittest.mock import MagicMock, patch, NonCallableMock, call
from parameterized import parameterized
Expand Down
2 changes: 2 additions & 0 deletions charts/rabbit-consumer/include/kinit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

# Adapted from https://cloud.redhat.com/blog/kerberos-sidecar-container

Expand Down
2 changes: 2 additions & 0 deletions charts/rabbit-consumer/include/sidecar-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

set -ex

Expand Down
2 changes: 2 additions & 0 deletions dns_entry_checker/dns_entry_checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from collections import defaultdict
from re import compile as re_compile
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions dns_entry_checker/test/test_dns_entry_checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from argparse import Namespace
from collections import defaultdict
from unittest import mock
Expand Down
2 changes: 2 additions & 0 deletions gpu_benchmark/benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

set -e

Expand Down
2 changes: 2 additions & 0 deletions gpu_benchmark/gpu_setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

sudo dnf update -y

Expand Down
2 changes: 2 additions & 0 deletions gpu_benchmark/power_perf.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation

set -e

Expand Down
2 changes: 2 additions & 0 deletions iriscasttools/iriscasttools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from iriscasttools import __main__
2 changes: 2 additions & 0 deletions iriscasttools/iriscasttools/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
import logging
import logging.handlers
import os
Expand Down
2 changes: 2 additions & 0 deletions iriscasttools/iriscasttools/stats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Collects energy usage metrics using IPMI, as well as other metrics such as CPU and RAM usage.
"""
Expand Down
2 changes: 2 additions & 0 deletions iriscasttools/iriscasttools/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Provides utility functions to collect energy usage information
"""
Expand Down
2 changes: 2 additions & 0 deletions iriscasttools/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from setuptools import setup, find_packages

VERSION = "0.2.1"
Expand Down
2 changes: 2 additions & 0 deletions iriscasttools/test/test_stats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests for main functions for iriscasttools package
"""
Expand Down
2 changes: 2 additions & 0 deletions iriscasttools/test/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
"""
Tests for utility functions for iriscasttools package
"""
Expand Down
2 changes: 2 additions & 0 deletions jsm_metric_collection/jsm_metric_collection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from datetime import datetime
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions jsm_metric_collection/test/test_jsm_metric_collection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from unittest import mock
from unittest.mock import MagicMock, patch, call
from parameterized import parameterized
Expand Down
2 changes: 2 additions & 0 deletions prometheus_ip_script/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from ipaddress import IPv4Network
from pathlib import Path
from typing import List
Expand Down
2 changes: 2 additions & 0 deletions prometheus_ip_script/test/test_generate_ips.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from pathlib import Path

from main import (
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from importlib import import_module
import sys
from pynetboxquery.utils.error_classes import UserMethodNotFoundError
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/netbox_api/netbox_connect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from pynetbox import api


Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/netbox_api/netbox_create.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from typing import Union, Dict, List


Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/netbox_api/netbox_get_id.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from pynetboxquery.utils.device_dataclass import Device


Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/netbox_api/validate_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from typing import List
from pynetbox import api
from pynetboxquery.utils.device_dataclass import Device
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from abc import ABC, abstractmethod
from typing import List, Dict
from argparse import ArgumentParser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from dataclasses import asdict
from pynetboxquery.utils.read_utils.read_file import ReadFile
from pynetboxquery.netbox_api.validate_data import ValidateData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from pynetboxquery.utils.parsers import Parsers
from pynetboxquery.netbox_api.validate_data import ValidateData
from pynetboxquery.utils.read_utils.read_file import ReadFile
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/device_dataclass.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from dataclasses import dataclass, fields
from typing import Optional

Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/error_classes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
# Disabling this Pylint error as these classes do not need Docstring.
# They are just errors
# pylint: disable = C0115
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/parsers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
import argparse


Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/query_device.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from typing import List
from pynetboxquery.utils.device_dataclass import Device
from pynetboxquery.netbox_api.netbox_get_id import NetboxGetId
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/read_utils/read_abc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from abc import ABC, abstractmethod
from pathlib import Path
from typing import List, Dict
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/read_utils/read_csv.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from csv import DictReader
from typing import List
from pynetboxquery.utils.device_dataclass import Device
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/read_utils/read_file.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from typing import List
from pynetboxquery.utils.device_dataclass import Device
from pynetboxquery.utils.error_classes import FileTypeNotSupportedError
Expand Down
2 changes: 2 additions & 0 deletions pynetbox_query/pynetboxquery/utils/read_utils/read_txt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 United Kingdom Research and Innovation
from csv import DictReader
from typing import List
from pynetboxquery.utils.device_dataclass import Device
Expand Down
Loading

0 comments on commit 34af811

Please sign in to comment.