made the augeus resource have a variant title based on the title of the define and it worked.
define sysctl_var::sysctlconf($key,$value) {
augeas { "sysctl ${title}":
context => "/files/etc/sysctl.conf",
changes => ["set $key '$value'",]
}
}