-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for checking the compatibility of schema version and xcat…
… release (#71) * add support for checking the compatibility of schema version and xcat release * add xcatversion in vutil * correct some version in validation criteria
- Loading branch information
Showing
31 changed files
with
978 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
xcat-inventory/xcclient/inventory/schema/0.1/credential.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
!!python/dict | ||
credential: | ||
CA: | ||
private_key: | ||
- "${{:'/etc/xcat/ca/private/ca-key.pem'}}" | ||
- "F:${{:['/etc/xcat/ca/private/ca-key.pem']}}" | ||
certificate: | ||
- "${{:'/etc/xcat/ca/ca-cert.pem'}}" | ||
- "F:${{:['/etc/xcat/ca/ca-cert.pem']}}" | ||
server: | ||
- "${{:'/etc/xcat/cert/server-cred.pem'}}" | ||
- "F:${{:['/etc/xcat/cert/server-cred.pem']}}" | ||
client: | ||
root: | ||
- "${{:'/root/.xcat/client-cred.pem'}}" | ||
- "F:${{:['/root/.xcat/client-key.pem']}}" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
!!python/dict | ||
network: | ||
basic_attr: | ||
net: | ||
- "T{networks.net}" | ||
- "C:${{value=V{basic_attr.net}: vutil.isIPaddr(value)}}" | ||
mask: | ||
- "T{networks.mask}" | ||
- "C:${{value=V{basic_attr.mask}: vutil.isIPaddr(value)}}" | ||
mgtifname: "T{networks.mgtifname}" | ||
gateway: | ||
- "T{networks.gateway}" | ||
mtu: "T{networks.mtu}" | ||
domain: "T{networks.domain}" | ||
vlanid: "T{networks.vlanid}" | ||
pool: | ||
dynamicrange: | ||
- "T{networks.dynamicrange}" | ||
- "C:${{ value=V{pool.dynamicrange}: True if str(value) in [''] or vutil.isIPaddr(value) or vutil.isIPrange(value) else False}}" | ||
staticrange: | ||
- "T{networks.staticrange}" | ||
- "C:${{ value=V{pool.staticrange}: True if str(value) in [''] or vutil.isIPrange(value) or vutil.isIPaddr(value) else False}}" | ||
staticrangeincrement: "T{networks.staticrangeincrement}" | ||
nodehostname: "T{networks.nodehostname}" | ||
ddnsdomain: "T{networks.ddnsdomain}" | ||
service: | ||
dhcpserver: "T{networks.dhcpserver}" | ||
tftpserver: "T{networks.tftpserver}" | ||
ntpservers: "T{networks.ntpservers}" | ||
logservers: "T{networks.logservers}" | ||
nameservers: "T{networks.nameservers}" | ||
usercomment: "T{networks.comments}" |
Oops, something went wrong.