This is an automated email from the ASF dual-hosted git repository.
DaanHoogland pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 2c039526a6d [CI] Auto add license headers to `conf` files with
pre-commit (#12926)
2c039526a6d is described below
commit 2c039526a6d21ad75409761694f75656566990ad
Author: John Bampton <[email protected]>
AuthorDate: Mon Sep 7 20:29:39 2026 +1000
[CI] Auto add license headers to `conf` files with pre-commit (#12926)
---
.pre-commit-config.yaml | 10 ++++++++++
.../apache2/conf-enabled/mods-enabled/mpm_event.conf | 17 +++++++++++++++++
systemvm/debian/etc/apache2/conf-enabled/security.conf | 17 +++++++++++++++++
systemvm/debian/etc/apache2/httpd.conf | 17 +++++++++++++++++
systemvm/debian/etc/ipsec.conf | 17 +++++++++++++++++
systemvm/debian/etc/ipsec.d/l2tp.conf | 17 +++++++++++++++++
systemvm/debian/etc/logrotate.conf | 17 +++++++++++++++++
systemvm/debian/etc/rsyslog.conf | 17 +++++++++++++++++
systemvm/debian/etc/sysctl.conf | 17 +++++++++++++++++
systemvm/debian/etc/systemd/journald.conf | 17 +++++++++++++++++
systemvm/debian/etc/vmware-tools/tools.conf | 17 +++++++++++++++++
systemvm/debian/etc/vpcdnsmasq.conf | 17 +++++++++++++++++
systemvm/debian/etc/xl2tpd/xl2tpd.conf | 17 +++++++++++++++++
tools/docker/supervisord.conf | 17 +++++++++++++++++
14 files changed, 231 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a7b564b0f37..25b0f75813a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -62,6 +62,16 @@ repos:
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
+ - id: insert-license
+ name: add license for all conf files
+ description: automatically adds a license header to all conf files
that don't have a license header
+ files: \.conf$
+ args:
+ - --comment-style
+ - '|#|'
+ - --license-filepath
+ - .github/workflows/license-templates/LICENSE.txt
+ - --fuzzy-match-generates-todo
- id: insert-license
name: add license for all Markdown files
files: \.md$
diff --git
a/systemvm/debian/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
b/systemvm/debian/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
index ea06042344f..8c5a34d1447 100644
--- a/systemvm/debian/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+++ b/systemvm/debian/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
diff --git a/systemvm/debian/etc/apache2/conf-enabled/security.conf
b/systemvm/debian/etc/apache2/conf-enabled/security.conf
index 498d147c3f2..9b0dad4685e 100644
--- a/systemvm/debian/etc/apache2/conf-enabled/security.conf
+++ b/systemvm/debian/etc/apache2/conf-enabled/security.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
ServerTokens Prod
ServerSignature Off
TraceEnable Off
diff --git a/systemvm/debian/etc/apache2/httpd.conf
b/systemvm/debian/etc/apache2/httpd.conf
index b7db25411d0..e4b7f7bdc80 100644
--- a/systemvm/debian/etc/apache2/httpd.conf
+++ b/systemvm/debian/etc/apache2/httpd.conf
@@ -1 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# Empty
diff --git a/systemvm/debian/etc/ipsec.conf b/systemvm/debian/etc/ipsec.conf
index 344d0c32216..11d60e78d99 100644
--- a/systemvm/debian/etc/ipsec.conf
+++ b/systemvm/debian/etc/ipsec.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# ipsec.conf - strongSwan IPsec configuration file
config setup
diff --git a/systemvm/debian/etc/ipsec.d/l2tp.conf
b/systemvm/debian/etc/ipsec.d/l2tp.conf
index 2e211e15ba7..beb1ca6585f 100644
--- a/systemvm/debian/etc/ipsec.d/l2tp.conf
+++ b/systemvm/debian/etc/ipsec.d/l2tp.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
#ipsec remote access vpn configuration
conn L2TP-PSK
authby=secret
diff --git a/systemvm/debian/etc/logrotate.conf
b/systemvm/debian/etc/logrotate.conf
index d33f2dae2e6..42814fb47b5 100644
--- a/systemvm/debian/etc/logrotate.conf
+++ b/systemvm/debian/etc/logrotate.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# rotate log files daily
daily
# keep 3 days worth
diff --git a/systemvm/debian/etc/rsyslog.conf b/systemvm/debian/etc/rsyslog.conf
index c7de03d5ad6..843e7491d0e 100644
--- a/systemvm/debian/etc/rsyslog.conf
+++ b/systemvm/debian/etc/rsyslog.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
diff --git a/systemvm/debian/etc/sysctl.conf b/systemvm/debian/etc/sysctl.conf
index 82275b8fb46..3418a57f042 100644
--- a/systemvm/debian/etc/sysctl.conf
+++ b/systemvm/debian/etc/sysctl.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# Kernel sysctl configuration file
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
diff --git a/systemvm/debian/etc/systemd/journald.conf
b/systemvm/debian/etc/systemd/journald.conf
index 224f375d6b6..013f73622ae 100644
--- a/systemvm/debian/etc/systemd/journald.conf
+++ b/systemvm/debian/etc/systemd/journald.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
[Journal]
Compress=yes
SystemMaxUse=40M
diff --git a/systemvm/debian/etc/vmware-tools/tools.conf
b/systemvm/debian/etc/vmware-tools/tools.conf
index 26f96ffc277..7f27b8402c0 100644
--- a/systemvm/debian/etc/vmware-tools/tools.conf
+++ b/systemvm/debian/etc/vmware-tools/tools.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
[logging]
# Turns on logging globally. It can still be disabled for each domain.
# log = true
diff --git a/systemvm/debian/etc/vpcdnsmasq.conf
b/systemvm/debian/etc/vpcdnsmasq.conf
index c1fc18ce1a6..f0fe631e966 100644
--- a/systemvm/debian/etc/vpcdnsmasq.conf
+++ b/systemvm/debian/etc/vpcdnsmasq.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same
diff --git a/systemvm/debian/etc/xl2tpd/xl2tpd.conf
b/systemvm/debian/etc/xl2tpd/xl2tpd.conf
index 574eab1461e..b97802e06b5 100644
--- a/systemvm/debian/etc/xl2tpd/xl2tpd.conf
+++ b/systemvm/debian/etc/xl2tpd/xl2tpd.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
[lns default]
ip range = 10.1.9.2-10.1.9.8
local ip = 10.1.9.1
diff --git a/tools/docker/supervisord.conf b/tools/docker/supervisord.conf
index 4fe0b49546b..13d1197d90e 100644
--- a/tools/docker/supervisord.conf
+++ b/tools/docker/supervisord.conf
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
[supervisord]
nodaemon=true