107 lines
4.4 KiB
XML
107 lines
4.4 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">
|
||
|
|
||
|
<!--
|
||
|
parent pom with distribution management
|
||
|
<parent>
|
||
|
<groupId>org.brakkee</groupId>
|
||
|
<artifactId>root</artifactId>
|
||
|
<version>1.0.2</version>
|
||
|
</parent>
|
||
|
-->
|
||
|
|
||
|
<modelVersion>4.0.0</modelVersion>
|
||
|
|
||
|
<packaging>rpm</packaging>
|
||
|
<groupId>org.brakkee.blog</groupId>
|
||
|
<artifactId>etcd-inmemory</artifactId>
|
||
|
<version>1.0.1-SNAPSHOT</version>
|
||
|
<name>etcd-inmemory</name>
|
||
|
<description>running etcd in-memory</description>
|
||
|
<organization>
|
||
|
<name>org.brakkee</name>
|
||
|
</organization>
|
||
|
|
||
|
<build>
|
||
|
<plugins>
|
||
|
<plugin>
|
||
|
<groupId>org.codehaus.mojo</groupId>
|
||
|
<artifactId>rpm-maven-plugin</artifactId>
|
||
|
<version>2.0.1</version>
|
||
|
<extensions>true</extensions>
|
||
|
<configuration>
|
||
|
<changelogFile>CHANGELOG</changelogFile>
|
||
|
<copyright>Apache License 2.0, 2010</copyright>
|
||
|
<group>org.wamblee.server</group>
|
||
|
<packager>Erik Brakkee</packager>
|
||
|
<needarch>x86_64</needarch>
|
||
|
|
||
|
<mappings>
|
||
|
<!-- kubelet service hooks: pre-start restore, post stop backup -->
|
||
|
<mapping>
|
||
|
<directory>/usr/lib/systemd/system/kubelet.service.d</directory>
|
||
|
<filemode>444</filemode>
|
||
|
<username>root</username>
|
||
|
<groupname>root</groupname>
|
||
|
<directoryIncluded>false</directoryIncluded>
|
||
|
<sources>
|
||
|
<source>
|
||
|
<location>files/usr/lib/systemd/system/kubelet.service.d</location>
|
||
|
</source>
|
||
|
</sources>
|
||
|
</mapping>
|
||
|
|
||
|
<!-- triggering backups at regualr intervals -->
|
||
|
<mapping>
|
||
|
<directory>/etc/cron.d</directory>
|
||
|
<filemode>644</filemode>
|
||
|
<username>root</username>
|
||
|
<groupname>root</groupname>
|
||
|
<directoryIncluded>false</directoryIncluded>
|
||
|
<configuration>true</configuration>
|
||
|
<sources>
|
||
|
<source>
|
||
|
<location>files/etc/cron.d</location>
|
||
|
</source>
|
||
|
</sources>
|
||
|
</mapping>
|
||
|
|
||
|
<!-- backup and restore scripts -->
|
||
|
<mapping>
|
||
|
<directory>/opt/wamblee/etcd/bin</directory>
|
||
|
<filemode>555</filemode>
|
||
|
<username>root</username>
|
||
|
<groupname>root</groupname>
|
||
|
<directoryIncluded>false</directoryIncluded>
|
||
|
<sources>
|
||
|
<source>
|
||
|
<location>files/opt/wamblee/etcd/bin</location>
|
||
|
</source>
|
||
|
</sources>
|
||
|
</mapping>
|
||
|
|
||
|
<!-- backup location for etcd -->
|
||
|
<mapping>
|
||
|
<directory>/var/lib/wamblee/etcd</directory>
|
||
|
<filemode>755</filemode>
|
||
|
<username>root</username>
|
||
|
<groupname>root</groupname>
|
||
|
</mapping>
|
||
|
</mappings>
|
||
|
<requires>
|
||
|
<require>nerdctl</require>
|
||
|
</requires>
|
||
|
<provides>
|
||
|
<provide>etcd-inmemory</provide>
|
||
|
</provides>
|
||
|
<postinstallScriptlet>
|
||
|
<script><![CDATA[
|
||
|
systemctl daemon-reload
|
||
|
]]></script>
|
||
|
</postinstallScriptlet>
|
||
|
</configuration>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
</build>
|
||
|
</project>
|