Skip to content
Snippets Groups Projects
Select Git revision
  • ac24f9c067ae9b9dfe8219630da45f5d39886547
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
22 results

ipaclient_join.py

Blame
  • ansible-freeipa.spec.in 2.31 KiB
    # Turn off automatic python byte compilation because these are Ansible
    # roles and the files are transferred to the node and compiled there with
    # the python version used in the node
    %define __brp_python_bytecompile %{nil}
    
    Summary: Roles and playbooks to deploy FreeIPA servers, replicas and clients
    Name: ansible-freeipa
    Version: @@VERSION@@
    Release: @@RELEASE@@%{?dist}
    URL: https://github.com/freeipa/ansible-freeipa
    License: GPLv3+
    Source: %{name}-%{version}-@@RELEASE@@.tar.bz2
    BuildArch: noarch
    
    %description
    ansible-freeipa provides Ansible roles and playbooks to install and uninstall
    FreeIPA servers, replicas and clients. Also modules for group, host, topology
    and user management.
    
    Note: The ansible playbooks and roles require a configured ansible environment
    where the ansible nodes are reachable and are properly set up to have an IP
    address and a working package manager.
    
    %package tests
    Summary: ansible-freeipa tests
    Requires: %{name}
    
    %description tests
    
    %prep
    %setup -q -n ansible-freeipa-%{version}-@@RELEASE@@
    # Do not create backup files with patches
    # Fix python modules and module utils:
    # - Remove shebang
    # - Remove execute flag
    for i in roles/ipa*/library/*.py roles/ipa*/module_utils/*.py plugins/*/*.py; do
        sed -i '1{/\/usr\/bin\/python*/d;}' $i
        chmod a-x $i
    done
    
    %build
    
    %install
    install -m 755 -d %{buildroot}%{_datadir}/ansible/roles/
    cp -rp roles/ipaserver %{buildroot}%{_datadir}/ansible/roles/
    cp -rp roles/ipaserver/README.md README-server.md
    cp -rp roles/ipareplica %{buildroot}%{_datadir}/ansible/roles/
    cp -rp roles/ipareplica/README.md README-replica.md
    cp -rp roles/ipaclient %{buildroot}%{_datadir}/ansible/roles/
    cp -rp roles/ipaclient/README.md README-client.md
    install -m 755 -d %{buildroot}%{_datadir}/ansible/plugins/
    cp -rp plugins/* %{buildroot}%{_datadir}/ansible/plugins/
    
    
    install -m 755 -d %{buildroot}%{_datadir}/ansible-freeipa/tests
    cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/
    
    %files
    %license COPYING
    %{_datadir}/ansible/roles/ipaserver
    %{_datadir}/ansible/roles/ipareplica
    %{_datadir}/ansible/roles/ipaclient
    %{_datadir}/ansible/plugins/module_utils
    %{_datadir}/ansible/plugins/modules
    %doc README*.md
    %doc playbooks
    
    %files tests
    %{_datadir}/ansible-freeipa
    
    %changelog
    * @@DATE@@ Thomas Woerner <twoerner@redhat.com> - @@VERSION@@-@@RELEASE@@
    - GIT version @@VERSION@@-@@RELEASE@@