Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package google-guest-configs for 
openSUSE:Factory checked in at 2024-05-16 17:17:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/google-guest-configs (Old)
 and      /work/SRC/openSUSE:Factory/.google-guest-configs.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "google-guest-configs"

Thu May 16 17:17:15 2024 rev:21 rq:1174496 version:20240514.00

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/google-guest-configs/google-guest-configs.changes    
    2024-04-23 18:55:30.501242317 +0200
+++ 
/work/SRC/openSUSE:Factory/.google-guest-configs.new.1880/google-guest-configs.changes
      2024-05-16 17:19:37.313591856 +0200
@@ -1,0 +2,9 @@
+Thu May 16 12:23:40 UTC 2024 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to version 20240514.00
+  * Add systemd-networkd hostname hook (#71)
+- from version 20240501.00
+  * Add hostname hook for NetworkManager without
+    dhclient compat script (#70)
+
+-------------------------------------------------------------------

Old:
----
  google-guest-configs-20240307.00.tar.gz

New:
----
  google-guest-configs-20240514.00.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ google-guest-configs.spec ++++++
--- /var/tmp/diff_new_pack.DvBy1i/_old  2024-05-16 17:19:37.769608383 +0200
+++ /var/tmp/diff_new_pack.DvBy1i/_new  2024-05-16 17:19:37.773608528 +0200
@@ -23,7 +23,7 @@
 %define _udevdir %(pkg-config --variable udev_dir udev)
 %endif
 Name:           google-guest-configs
-Version:        20240307.00
+Version:        20240514.00
 Release:        0
 Summary:        Google Cloud Guest Configs
 License:        Apache-2.0

++++++ google-guest-configs-20240307.00.tar.gz -> 
google-guest-configs-20240514.00.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/guest-configs-20240307.00/packaging/debian/control 
new/guest-configs-20240514.00/packaging/debian/control
--- old/guest-configs-20240307.00/packaging/debian/control      2024-03-06 
21:59:07.000000000 +0100
+++ new/guest-configs-20240514.00/packaging/debian/control      2024-05-14 
23:48:57.000000000 +0200
@@ -11,6 +11,7 @@
 Depends: google-compute-engine-oslogin,
          google-guest-agent,
          nvme-cli,
+         networkd-dispatcher,
          ${misc:Depends}
 Recommends: rsyslog | system-log-daemon
 Provides: irqbalance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/guest-configs-20240307.00/packaging/debian/install 
new/guest-configs-20240514.00/packaging/debian/install
--- old/guest-configs-20240307.00/packaging/debian/install      2024-03-06 
21:59:07.000000000 +0100
+++ new/guest-configs-20240514.00/packaging/debian/install      2024-05-14 
23:48:57.000000000 +0200
@@ -2,6 +2,8 @@
 etc/modprobe.d/*
 etc/rsyslog.d/*
 etc/sysctl.d/*
+etc/NetworkManager/dispatcher.d/*
+usr/lib/networkd-dispatcher/*
 lib/udev/rules.d/*
 lib/udev/*
 usr/bin/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20240307.00/packaging/google-compute-engine.spec 
new/guest-configs-20240514.00/packaging/google-compute-engine.spec
--- old/guest-configs-20240307.00/packaging/google-compute-engine.spec  
2024-03-06 21:59:07.000000000 +0100
+++ new/guest-configs-20240514.00/packaging/google-compute-engine.spec  
2024-05-14 23:48:57.000000000 +0200
@@ -59,6 +59,7 @@
 %defattr(0644,root,root,0755)
 %attr(0755,-,-) %{_bindir}/*
 %attr(0755,-,-) /etc/dhcp/dhclient.d/google_hostname.sh
+%attr(0755,-,-) /etc/NetworkManager/dispatcher.d/google_hostname.sh
 %{_udevrulesdir}/*
 %attr(0755,-,-) %{_udevrulesdir}/../google_nvme_id
 %config /etc/dracut.conf.d/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20240307.00/src/etc/NetworkManager/dispatcher.d/google_hostname.sh
 
new/guest-configs-20240514.00/src/etc/NetworkManager/dispatcher.d/google_hostname.sh
--- 
old/guest-configs-20240307.00/src/etc/NetworkManager/dispatcher.d/google_hostname.sh
        1970-01-01 01:00:00.000000000 +0100
+++ 
new/guest-configs-20240514.00/src/etc/NetworkManager/dispatcher.d/google_hostname.sh
        2024-05-14 23:48:57.000000000 +0200
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Copyright 2024 Google LLC.
+#
+# 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.
+if [[ $2 == "up" ]]; then
+       new_host_name=$DHCP4_HOST_NAME new_ip_address=${DHCP4_IP_ADDRESS%%/*} 
google_set_hostname
+fi
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20240307.00/src/usr/bin/google_set_hostname 
new/guest-configs-20240514.00/src/usr/bin/google_set_hostname
--- old/guest-configs-20240307.00/src/usr/bin/google_set_hostname       
2024-03-06 21:59:07.000000000 +0100
+++ new/guest-configs-20240514.00/src/usr/bin/google_set_hostname       
2024-05-14 23:48:57.000000000 +0200
@@ -59,6 +59,11 @@
     nmcli general hostname "${new_host_name%%.*}"
   fi
 
+  hostnamectl=$(which hostnamectl 2> /dev/null)
+  if [ -x "$hostnamectl" ]; then
+    hostnamectl hostname "${new_host_name%%.*}"
+  fi
+
   # Restart rsyslog to update the hostname.
   systemctl=$(which systemctl 2> /dev/null)
   if [ -x "$systemctl" ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20240307.00/src/usr/lib/networkd-dispatcher/routable.d/google_hostname.sh
 
new/guest-configs-20240514.00/src/usr/lib/networkd-dispatcher/routable.d/google_hostname.sh
--- 
old/guest-configs-20240307.00/src/usr/lib/networkd-dispatcher/routable.d/google_hostname.sh
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/guest-configs-20240514.00/src/usr/lib/networkd-dispatcher/routable.d/google_hostname.sh
 2024-05-14 23:48:57.000000000 +0200
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Copyright 2024 Google LLC.
+#
+# 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
+
+new_host_name=$(curl -H 'Metadata-Flavor: Google' 
http://169.254.169.254/computeMetadata/v1/instance/hostname)
+new_ip_address=$ADDR new_host_name=$new_host_name google_set_hostname
+

Reply via email to