Skip to content

Commit

Permalink
Removed faros-config from monorepo structure (#1)
Browse files Browse the repository at this point in the history
Faros Config now lives in a separate [repository](https://github.com/project-faros/faros-config) in order to enable it to have its own release cycle and separate, dedicated CI and testing.
  • Loading branch information
jharmison-redhat committed Jan 25, 2021
1 parent 43d3dbf commit 9724ac4
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 228 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ COPY requirements.txt /deps/python_requirements.txt
COPY requirements.yml /deps/ansible_requirements.yml
COPY home /root
COPY pre /pre

RUN set -ex; \
microdnf update; \
microdnf install python3 jq openssh-clients tar sshpass findutils telnet less ncurses; \
pip3 install --user -r /deps/python_requirements.txt /pre/faros_config; \
pip3 install --user -r /deps/python_requirements.txt; \
ansible-galaxy collection install -r /deps/ansible_requirements.yml; \
microdnf clean all; \
rpm -i /pre/ilorest-3.0.1-7.x86_64.rpm; \
Expand Down
13 changes: 1 addition & 12 deletions app/inventory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import argparse
from collections import defaultdict
from faros_config import FarosConfig
from faros_config import FarosConfig, PydanticEncoder
import ipaddress
import json
import os
Expand All @@ -12,17 +12,6 @@
IP_RESERVATIONS = '/data/ip_addresses'


class PydanticEncoder(json.JSONEncoder):
def default(self, obj):
obj_has_dict = getattr(obj, "dict", False)
if obj_has_dict and callable(obj_has_dict):
return obj.dict(exclude_none=True)
elif isinstance(obj, ipaddress._IPAddressBase):
return str(obj)
else:
return json.JSONEncoder.default(self, obj)


class InventoryGroup(object):

def __init__(self, parent, name):
Expand Down
3 changes: 3 additions & 0 deletions data.skel/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ network:
lan:
subnet: 192.168.8.0/24
interfaces: []
dhcp:
ignore_macs: []
extra_reservations: []
bastion:
become_pass: admin
cluster:
Expand Down
7 changes: 0 additions & 7 deletions pre/faros_config/README.md

This file was deleted.

1 change: 0 additions & 1 deletion pre/faros_config/VERSION.txt

This file was deleted.

65 changes: 0 additions & 65 deletions pre/faros_config/example_config.yml

This file was deleted.

22 changes: 0 additions & 22 deletions pre/faros_config/faros_config/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions pre/faros_config/faros_config/bastion.py

This file was deleted.

29 changes: 0 additions & 29 deletions pre/faros_config/faros_config/cluster.py

This file was deleted.

6 changes: 0 additions & 6 deletions pre/faros_config/faros_config/common.py

This file was deleted.

43 changes: 0 additions & 43 deletions pre/faros_config/faros_config/network.py

This file was deleted.

9 changes: 0 additions & 9 deletions pre/faros_config/faros_config/proxy.py

This file was deleted.

13 changes: 0 additions & 13 deletions pre/faros_config/setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions pre/faros_config/setup.py

This file was deleted.

11 changes: 0 additions & 11 deletions pre/faros_config/test_config.py

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ansible<2.11
faros-config==0.1.3

# for management/ilo provider
python-hpilo==4.4.3
Expand Down

0 comments on commit 9724ac4

Please sign in to comment.