=== Resources List ===
Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
  name = mount1 [ primary ]
  mountpoint = /mnt/cluster [ unique required ]
  device = /dev/sdb8 [ unique required ]
  fstype = ext3
  nfslock [ inherit("nfslock") ]

Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
  name = mount2 [ primary ]
  mountpoint = /mnt/cluster2 [ unique required ]
  device = /dev/sdb9 [ unique required ]
  fstype = ext3
  nfslock [ inherit("nfslock") ]

Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
  address = 192.168.1.3 [ primary unique ]
  monitor_link = yes
  nfslock [ inherit("service%nfslock") ]

Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
  address = 192.168.1.4 [ primary unique ]
  monitor_link = yes
  nfslock [ inherit("service%nfslock") ]

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = User group [ primary unique ]
  target = @users [ required ]
  path [ inherit("path") ]
  fsid [ inherit("fsid") ]
  options = rw,sync

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = Admin group [ primary unique ]
  target = @admin [ required ]
  path [ inherit("path") ]
  fsid [ inherit("fsid") ]
  options = rw

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = yellow [ primary unique ]
  target = yellow [ required ]
  path [ inherit("path") ]
  fsid [ inherit("fsid") ]
  options = rw,no_root_squash

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = magenta [ primary unique ]
  target = magenta [ required ]
  path [ inherit("path") ]
  fsid [ inherit("fsid") ]
  options = rw,no_root_squash

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = red [ primary unique ]
  target = red [ required ]
  path [ inherit("path") ]
  fsid [ inherit("fsid") ]
  options = rw

Resource type: nfsexport
Agent: nfsexport.sh
Attributes:
  name = Dummy Export [ primary ]
  device [ inherit("device") ]
  path [ inherit("mountpoint") ]
  fsid [ inherit("fsid") ]

Resource type: script
Agent: script.sh
Attributes:
  name = initscript [ primary unique ]
  file = /etc/init.d/sshd [ unique required ]
  service_name [ inherit("service%name") ]

Resource type: service
Instances: 1/1
Agent: service.sh
Attributes:
  name = test1 [ primary unique required ]

Resource type: service
Instances: 1/1
Agent: service.sh
Attributes:
  name = test2 [ primary unique required ]

=== Resource Tree ===
service {
  name = "test1";
  fs {
    name = "mount1";
    mountpoint = "/mnt/cluster";
    device = "/dev/sdb8";
    fstype = "ext3";
        nfsexport {
      name = "Dummy Export";
      device = "/dev/sdb8";
      path = "/mnt/cluster";
            nfsclient {
        name = "Admin group";
        target = "@admin";
        path = "/mnt/cluster";
                options = "rw";
      }
      nfsclient {
        name = "User group";
        target = "@users";
        path = "/mnt/cluster";
                options = "rw,sync";
      }
      nfsclient {
        name = "red";
        target = "red";
        path = "/mnt/cluster";
                options = "rw";
      }
    }
  }
  ip {
    address = "192.168.1.3";
    monitor_link = "yes";
      }
  script {
    name = "initscript";
    file = "/etc/init.d/sshd";
    service_name = "test1";
  }
}
service {
  name = "test2";
  fs {
    name = "mount2";
    mountpoint = "/mnt/cluster2";
    device = "/dev/sdb9";
    fstype = "ext3";
        nfsexport {
      name = "Dummy Export";
      device = "/dev/sdb9";
      path = "/mnt/cluster2";
            nfsclient {
        name = "Admin group";
        target = "@admin";
        path = "/mnt/cluster2";
                options = "rw";
      }
      nfsclient {
        name = "User group";
        target = "@users";
        path = "/mnt/cluster2";
                options = "rw,sync";
      }
      nfsclient {
        name = "red";
        target = "red";
        path = "/mnt/cluster2";
                options = "rw";
      }
    }
  }
  ip {
    address = "192.168.1.4";
    monitor_link = "yes";
      }
  script {
    name = "initscript";
    file = "/etc/init.d/sshd";
    service_name = "test2";
  }
}
